Update the backup script to not break during transaction