Free audit

View Audit Scope
MySQLBackups, point-in-time recovery, restore drills

MySQL Backup and Recovery

JusDB reviews, builds, and tests MySQL backup and recovery for MySQL 8.0 and 8.4 on your own servers, Kubernetes, Amazon RDS, Aurora, Cloud SQL, and Azure. Our engineers set up Percona XtraBackup or MySQL Shell dumps, archive binary logs for point-in-time recovery, and run restore drills that time a real restore.

The first 30-minute call covers your databases, current ownership, and required coverage. No production access is needed.

  • NDA before access
  • Read-only by default
  • Written scope before work starts
Tools we work with
Percona XtraBackup, MySQL Shell dump and load, mydumper, mysqldump, mysqlbinlog
Recovery paths
Full instance restore, single schema or table restore, binary log point-in-time recovery
Response SLA
15 mins for a critical (P1) incident, 24/7, under a support agreement.

The short answer

What MySQL backup and recovery covers

MySQL backup and recovery is the set of copies, logs, and procedures that let you rebuild a database after hardware failure, a bad deployment, an accidental DROP or DELETE, corruption, or ransomware. In practice it has three parts: a full backup taken on a schedule, the binary logs written since that backup, and a tested procedure that turns those files back into a running server.

Replication is not a backup. A replica applies every change from the source, including the DELETE without a WHERE clause, within seconds. Delayed replicas and InnoDB Cluster help with some failures, but recovering from a logical mistake still needs a backup taken before it and the binary logs to roll forward to the minute before it happened.

Our work starts with a read-only review of what you have: backup jobs and their logs, binary log settings and retention, where copies are stored and who can delete them, how encryption keys are kept, and when a restore last succeeded. The written report ranks the gaps, then our engineers fix the ones you approve and run a restore drill to prove the fix.

Backup methods

Physical, logical, and snapshot backups for MySQL

Each method answers a different restore question. Most production MySQL estates combine a physical backup for whole-instance recovery with a logical dump for table-level restores and moves.

MySQL backup methods, what each one captures, how it restores, and when it fits
MethodWhat it capturesHow it restoresWhere it fits
Percona XtraBackupInnoDB data files and redo log copied while MySQL runs, plus the binary log position and GTID set at the end of the backup. Full and incremental backups by LSN.Prepare (apply redo), copy back, start mysqld. Restores the whole instance; individual tables only with transportable tablespaces.Primary backup for large InnoDB databases where restore speed matters. Use the XtraBackup release line that matches your MySQL major version.
MySQL Shell dump and loadLogical, chunked, compressed dump of an instance, schemas, or tables with util.dumpInstance(), util.dumpSchemas(), or util.dumpTables(). Metadata records the binary log position and GTID set.util.loadDump() loads in parallel, can defer secondary indexes, and can load selected schemas or tables.Table and schema restores, version-to-version moves, loading into RDS, Aurora, or HeatWave, and a second copy in a different format.
mydumper and myloaderMulti-threaded logical dump with consistent snapshot and per-table files.myloader restores in parallel, per table or whole schema.Teams already running it, or large schemas where a logical copy is needed and MySQL Shell is not an option.
mysqldumpSingle-threaded SQL dump. With --single-transaction and --source-data it is consistent for InnoDB and records the binary log position.Replays SQL statements one by one, which is slow on large data sets.Small databases, schema-only exports, and one-off copies.
Storage or provider snapshotsBlock-level copy of the volume (EBS, persistent disk, SAN) or the managed service's automated snapshot.New volume or new instance from the snapshot; managed services add log replay for point-in-time restore.Fast whole-instance copies, as long as the snapshot is crash-consistent and binary logs are kept separately for roll-forward.

Binary logs are the piece that turns any of these into point-in-time recovery. Without them, the best you can restore to is the moment the last backup finished.

Point-in-time recovery

How MySQL point-in-time recovery works

Point-in-time recovery (PITR) restores a full backup and then replays binary logs up to a chosen time, position, or GTID, stopping just before the change you want to undo.

  1. Step 1

    Keep every binary log since the last full backup

    log_bin on, binlog_format=ROW, sync_binlog=1, and GTIDs on. Binary logs are streamed off the server with mysqlbinlog --read-from-remote-server --raw --stop-never, or copied on rotation, so losing the host does not lose the logs.

  2. Step 2

    Find the stopping point

    Identify the exact binary log position or GTID of the bad statement with mysqlbinlog --verbose and your application's timeline. Time alone is often too coarse on a busy server.

  3. Step 3

    Restore the base backup to a separate host

    Prepare and restore the XtraBackup copy, or load the MySQL Shell dump, on an isolated instance. The backup metadata gives the binary log file, position, and GTID set it covers.

  4. Step 4

    Replay binary logs and check before cutover

    mysqlbinlog replays from the backup's position to the stopping point, optionally excluding the bad GTID. We check row counts and key tables with you, then repoint the application or copy back only the damaged data.

Physical restore with XtraBackup

# Prepare the backup (applies the redo log copied during backup)
xtrabackup --prepare --target-dir=/restore/full

# Read the binary log position the backup ends at
cat /restore/full/xtrabackup_binlog_info
# binlog.000412  1882734  <server-uuid>:1-9381220

xtrabackup --copy-back --target-dir=/restore/full --datadir=/var/lib/mysql

Roll forward to just before the bad change

mysqlbinlog --start-position=1882734 \
  --stop-datetime="2026-11-20 14:31:59" \
  /archive/binlog.000412 /archive/binlog.000413 \
  | mysql -u restore_admin -p

# Or skip one bad transaction and keep the rest
# (GTIDs already in the restored backup are skipped automatically)
mysqlbinlog --exclude-gtids='<server-uuid>:9412007' \
  /archive/binlog.000412 /archive/binlog.000413 \
  | mysql -u restore_admin -p

Illustrative commands with placeholder names and times. Real runbooks are written against your hosts, paths, and retention settings.

Restore testing

A MySQL backup counts once it has been restored

Backup jobs report success when files are written, not when they can be restored. A restore drill rebuilds the database on separate infrastructure and checks it, so problems surface on a quiet day instead of during an incident.

  • The backup prepares and starts

    xtrabackup --prepare completes, mysqld starts on the restored data directory, and InnoDB crash recovery finishes without errors in the error log.

  • Binary logs replay to a target

    Archived binary logs apply from the backup's position to a chosen point with no missing files, which proves the archive is complete.

  • Data matches the source

    Row counts and CHECKSUM TABLE on key tables are compared with a replica stopped at the same GTID, and the application's own smoke queries run against the restored copy.

  • Users, grants, and keys come back

    Accounts, roles, and grants restore with the data, and keyring files or KMS access needed for encrypted tablespaces and binary logs are available on the restore host.

  • Restore time is measured

    Each stage (download, prepare, copy back, binary log replay) is timed, so the restore time you plan around comes from a real run against your agreed RTO.

  • The runbook is updated

    Any step that was missing, wrong, or slow goes back into the written restore runbook your team keeps.

What each restore drill leaves in writing

  • Which backup and which binary logs were restored, and the target point
  • Time taken for each restore stage, compared with the agreed RTO
  • Checks run on the restored data and their results
  • Problems found, fixes made, and runbook changes

What backup reviews find

MySQL backup gaps we find most often

These come up repeatedly in backup reviews. None of them shows up as a failed backup job, which is why they survive until someone tries a restore.

  • Binary logs expire before they are archived

    binlog_expire_logs_seconds removes logs from the server, and if they were never copied elsewhere, point-in-time recovery stops at the last full backup.

  • Backups taken from a broken or lagging replica

    A backup from a replica whose replication stopped days ago is a valid backup of old data. We check replica health and lag before each backup runs.

  • Encryption keys stored only on the database host

    InnoDB tablespace encryption and binary log encryption need the keyring to restore. If the keyring file lives only on the failed server, the backup cannot be read.

  • Backups in the same account or bucket as production

    Copies that production credentials can delete do not survive ransomware or a compromised account. Object lock or a separate account with restricted delete rights closes that gap.

  • Logical dumps sized for a smaller database

    A mysqldump that restored in minutes at 20 GB can take far longer at several terabytes. Restore time is rarely remeasured as data grows.

  • DDL and non-InnoDB tables during hot backups

    MyISAM tables and DDL during an XtraBackup run need backup locks or careful scheduling. We check the backup log and the prepare step rather than the exit code alone.

Managed cloud and self-managed

MySQL backups on managed cloud and your own servers

Managed services take snapshots for you, but the retention, the copies outside the provider, and the restore procedure stay your team's decisions.

What each MySQL platform handles for backups and what stays with your team
PlatformWhat the platform handlesWhat stays with your team
Amazon RDS for MySQLAutomated snapshots and transaction logs for point-in-time restore within the retention period you set; restores create a new instance.Retention length, cross-region and cross-account copies, KMS key access, logical dumps for table-level restores, and the repointing steps.
Amazon Aurora MySQLContinuous, incremental backups with point-in-time restore to a new cluster; Backtrack rewinds the cluster in place where it was turned on.Backtrack window and its trade-offs, snapshot copies outside the account, and restore drills that include the application cutover.
Cloud SQL and Azure Flexible ServerAutomated backups and point-in-time restore to a new instance or server, using binary logs the service keeps.Binary logging and retention settings, exports to storage you control, and timing a restore for your data size.
Self-managed, VMs, and KubernetesNothing by default. Operators such as the Percona and Oracle MySQL operators schedule XtraBackup or dump jobs to object storage.Everything: tooling, scheduling, binary log archiving, storage, encryption, monitoring, and restore drills.

Your team keeps control

  • Set business priorities, application requirements, and release plans
  • Approve production changes, except routine actions you have pre-approved
  • Own your cloud accounts, access policies, and vendor relationships
  • Decide when maintenance can happen and how quickly service must recover
  • Move the work in-house or to another provider after your agreement's notice period, with your data returned or deleted and the transition help your agreement sets out (see Terms, section 8)

JusDB handles the agreed work

  • Monitor database health, investigate alerts, and involve the right people
  • Review query performance, replication, capacity, and backup health
  • Carry out approved changes and update the operating instructions they affect
  • Report completed work, open risks, and recommended next steps

Ways to work

Where MySQL backup and recovery work sits

A backup review is a scoped project with a written report. Running backups, restore drills, and incident restores week to week sits inside a remote DBA or support agreement.

When a restore is part of an incident

24/7 support. SLA response times: P1 – 15 mins | P2 – 30 mins | P3 – 60 mins. Our engineering team is in India (IST, UTC+5:30) and provides 24/7 support.

Response means an on-call engineer is working the incident, not an automated reply.

For procurement and security

NDA first, read-only by default, and written scope

Backup files hold a full copy of your data, so access to them is agreed as carefully as access to production. Your team approves every change and keeps every runbook, script, and drill report.
  • Mutual NDA
  • Written statement of work
  • Named engineers
  • Least-privilege access
  • NDA before access

    Signed before any diagnostic access. The scoping call needs no credentials.

  • Written scope

    Covered databases, backup tooling, drill cadence, and recovery targets agreed in writing.

  • Least-privilege accounts

    Named accounts with only the backup and restore privileges the work needs, through your bastion or VPN.

  • Runbooks you keep

    Restore procedures, scripts, and drill records stay with your team.

JusDB's security practices are aligned with ISO 27001 and SOC 2 Type II, and JusDB is pursuing both certifications (see Terms, section 12). Read the stated status.

Further reading

MySQL backup and restore guides

Longer write-ups from our engineering blog, plus the cross-engine backup and disaster recovery service.

FAQ

MySQL backup and recovery questions

Answers on XtraBackup versus MySQL Shell dumps, binary log point-in-time recovery, restore drills, recovery targets, and managed cloud backups.

Still have a question?

Ask it on a scoping call. No production access needed.

Book a 30-min scoping call (opens Google Calendar in a new tab)

What does MySQL backup and recovery work with JusDB cover?

It covers how each MySQL database is backed up (physical, logical, or provider snapshots), how binary logs are kept for point-in-time recovery, where copies are stored and who can delete them, and whether a restore has actually been tested. A first engagement is usually a written backup review; ongoing backup checks and restore drills run under a MySQL remote DBA or support agreement.

Should we use Percona XtraBackup or MySQL Shell dump utilities?

Most production systems use both. XtraBackup copies InnoDB data files while the server runs and restores a whole instance quickly, so it is the usual primary backup for large databases. MySQL Shell util.dumpInstance() writes a parallel logical dump that can restore single schemas or tables, load into a different MySQL version, or move data to a managed service. We pick the mix from your data size, restore needs, and platform.

How does MySQL point-in-time recovery work?

You restore the most recent full backup taken before the target time, then replay the binary logs written after that backup up to the moment just before the bad change. The backup records the binary log file and position or the GTID set it covers, and mysqlbinlog replays from there with --stop-datetime, --stop-position, or GTID filters. It only works if every binary log since that backup still exists somewhere other than the failed server.

How often should MySQL restores be tested?

We agree the drill cadence with you per database, based on how critical it is, how fast it changes, and the recovery targets you set. A drill also runs after any change to backup tooling, storage, encryption, or MySQL version, because those are the changes that quietly break restores.

Do you commit to a fixed RTO or RPO for MySQL?

No. Restore time and the amount of recent data at risk depend on data size, storage and network throughput, binary log archiving, and the kind of failure. We help you set RTO and RPO targets for each database, design backups and binary log archiving to meet them, and measure real restore times in drills so the targets rest on evidence.

Do you work with Amazon RDS, Aurora, and Cloud SQL backups?

Yes. Managed services take automated snapshots and keep logs for point-in-time restore within the retention you configure, and the restore creates a new instance. We review retention, cross-region and cross-account copies, snapshot encryption keys, and the steps to repoint applications, and we add logical dumps where you need copies outside the provider or table-level restores.

We need an emergency MySQL restore. What happens now?

For JusDB support clients, an emergency restore is handled as an incident. 24/7 support. SLA response times: P1 – 15 mins | P2 – 30 mins | P3 – 60 mins. If you are not yet a client, send us the incident details. We review enquiries within 2–4 business hours, Mon–Fri 09:00–18:00 IST. Work starts once scope and access are agreed.

Next step

Talk to a MySQL engineer about your backups

Tell us which MySQL versions and platforms you run, how you back them up today, and when you last restored one. The first 30-minute call covers your databases, current ownership, and required coverage. No production access is needed.

NDA before access · read-only by default · written scope first