Skip to content

Verifying that your WordPress backup is actually restorable

A backup that has never been restored is a hypothesis. Here is the verification routine we run on managed WordPress so the answer is never "let's find out."

The dashboard says backups are running. The destination has 30 archives in it. Until one of them has been restored into a working WordPress, none of them are confirmed restorable.

What’s happening

There are four ways a “successful” backup turns out to be unrestorable when you actually need it:

  • Archive opens, database doesn’t import — the SQL dump references a stored procedure or a definer user that doesn’t exist on the target, and the import aborts halfway.
  • Database imports, site renders blank — the home directory in the archive is missing wp-content, or the file permissions are root-owned and the web server can’t read them.
  • Site renders, integrations are broken — wp_options contains API endpoints, encryption salts, or environment-specific URLs that don’t match the restore target. WordPress loads; logged-in users can’t authenticate; webhooks 404.
  • Everything works, but the data is from the wrong moment — the backup is from before the corruption was introduced, but so was every prior backup. The retention policy was the actual failure.

The first three are caught only by a real restore. The fourth is caught only by a retention review.

How to verify

The drill we run on every managed WordPress site, quarterly, recorded:

# 1. Pull the most recent off-host snapshot
jetbackup5api -F downloadBackup -D '{"snapshot_id":"<id>","account":"acmewp"}'

# 2. Restore into an isolated staging account on a different host
# 3. Time the wall-clock from "start restore" to "home page returns 200"
time curl -o /dev/null -s -w "%{http_code}\n" https://acmewp.staging.sh

# 4. Run the smoke test
wp --path=/home/acmewp-staging/public_html post list --posts_per_page=5
wp --path=/home/acmewp-staging/public_html user list --role=administrator
wp --path=/home/acmewp-staging/public_html option get siteurl

The wall-clock number from step 3 is the actual RTO. Whatever the plan’s marketing copy says, the real RTO is what the team can demonstrate end-to-end without help from the engineer who set the backup up.

The fix

If the drill fails, fix the configuration that produced the unusable backup before declaring victory:

  1. Database import errors — switch to per-database dumps with --routines --triggers --no-tablespaces and verify imports against a scratch MySQL.
  2. Filesystem ownership — explicitly normalize ownership during restore (chown -R <cpanel-user>:<cpanel-user> /home/<user>/public_html) as a post-restore step in the runbook.
  3. Environment-specific data — keep a documented list of wp_options keys and constants that must be rewritten on restore-to-staging.

If the drill succeeds, record the RTO and report it to the customer. That number is the only one that matters.


Stack Harbor runs quarterly restore drills as part of environment management. If the last drill on your environment was “never,” book a recovery test.