Backup restore testing: the steps, the checks and the record to keep
Read the guide →Restore the latest backup into a new, empty database on a machine that is not production, check row counts and a few known records, and record how long it took.
These guides show how to do the job with the tools that ship with your database. The pg_dump, mysqldump and AWS CLI commands come from the PostgreSQL, MySQL and AWS documentation, and the SimpleBackups restore steps come from its own docs. As read on October 10, 2026, the SimpleBackups Basic plan is free for one backup job and Lite is $49 a month, billed monthly, for five.
We may earn a commission if you buy through links on this page, at no extra cost to you.
Try SimpleBackups free →Restore the latest backup into a new, empty database on a machine that is not production, check row counts and a few known records, and record how long it took.
Run pg_dump -Fc mydb > db.dump for the database and pg_dumpall --globals-only for roles. Restore with pg_restore -d into a database created from template0, and test that restore.
Pipe mysqldump --single-transaction into aws s3 cp with a dash as the source. Add --routines and --events, keep the password out of the command line, and test the restore.
Pipe pg_dump in custom format into aws s3 cp with a dash as the source. It streams straight to the bucket with no local file. Add --expected-size for streams over 50 GB.
To use SimpleBackups, create a backup with a serverless worker or your own server, enter the database details, set schedule, retention and storage, then download a run and restore it into a new database.
Use a logical dump for small databases and upgrades, a physical base backup plus archived WAL when you need point-in-time recovery, and keep at least one copy off-site.
Back up roles as well as data, keep a copy off the server, make archive_command refuse overwrites and return honest exit codes, monitor archiving, and run real test restores on a schedule.
pg_dump backs up one database in a choice of formats. pg_dumpall backs up every database plus roles and tablespaces as one SQL script. The usual pairing is pg_dump per database plus pg_dumpall --globals-only.
pg_dump makes a portable logical copy of one database. pg_basebackup copies the whole cluster's files and, with WAL archiving, enables point-in-time recovery. The two can be run together.