Your WordPress Backups Are Worthless Until You Have Restored One

The Backup You Have Never Actually Opened

Restoring A WordPress Backup - SiteHale

Every week the same email lands in your inbox: backup completed successfully. Your backup plugin shows a green tick, or your host’s control panel lists a neat column of dated snapshots. You might have downloaded one of those archives once, noticed it was a reassuringly large file, and closed the folder. What you have probably never done is try restoring a WordPress backup, which means taking one of those files and turning it back into a working website.

Most site owners are in exactly this position, and it feels safe right up until the day it matters. Then a plugin update takes the site down, a hosting account gets compromised, or someone deletes the wrong thing. You reach for the backup and do your first-ever restore on a broken live site, under pressure, while visitors and customers hit an error page. That is the worst possible moment to learn that the archive is missing something.

We work from a simple rule: a backup nobody has restored is a guess. It might be complete. It might come back cleanly on a fresh server. But until someone has imported it and watched the site load, nobody knows.

So every quarter we take the newest snapshot, import it into a disposable staging copy of the site, and run the same automated HTTP checks a real deployment has to pass. The first time we ran that drill against a live site’s backups, it surfaced six separate faults. Every one of them had sailed through an earlier dry run that only inspected the archive without restoring it.

Six problems, all invisible until the backup was actually used. That experience is what this article is about. Below we cover why a success message proves so little, what a real restore test involves, which checks tell you the site truly came back, why the number of snapshots you keep matters, and how to run your own drill without putting the live site at risk.

Why a Successful Backup Message Proves So Little

When a backup tool reports success, it usually means one thing: the backup process ran to the end without throwing an error and wrote a file somewhere. That matters, but it is a long way from this file will rebuild my site.

The obvious next step is a dry run. You open the archive, confirm it isn’t corrupt, scan the file list, and check that the database export is a plausible size. We did exactly that. It passed. It proved the archive was readable, and nothing more.

The six faults our first live drill found all sat in places a dry run never reaches: the moment the database is imported, the moment WordPress reads its configuration on a new server, and the moment a real browser requests a page. You only reach those stages by doing the restore.

We won’t present our particular six as a universal checklist, because every site’s setup is different. The kinds of problems that hide at those stages are well known, though, and worth understanding:

  • A database export that stops partway. The file can still be large and open without complaint, yet be missing tables or rows at the end. You only notice when content is gone after import.
  • Folders excluded to save space. Some setups skip the uploads directory or cache folders by default. The site restores, and every image is broken.
  • Configuration that never made it in. If the configuration file or server rewrite rules are not in the archive, the restored site may not connect to its database or may break every permalink.
  • Hard-coded addresses. The restored copy keeps redirecting to the live domain, so you cannot tell whether it works at all.
  • Server differences. A different PHP version or a missing extension on the new host can turn a clean import into a blank white screen.

None of these shows up as an error when the backup is created. All of them show up when you restore.

What Restoring a WordPress Backup to Staging Actually Involves

A restore drill only works if it is close enough to the real thing to fail the way the real thing would, and isolated enough that a failure costs nothing. Here is the sequence we follow each quarter:

  1. Take the newest snapshot, not a hand-picked one. In an emergency you will reach for the latest backup, so that is the one to test. Choosing an older one you already trust defeats the purpose.
  2. Create a fresh, disposable staging environment. Use a separate database, a separate address, and no shared credentials with the live site. Start from empty every time. Leftover files from a previous drill can quietly fill a gap the backup should have covered and hide a real fault.
  3. Import the database and restore the files using the same method you would use in a real recovery. If your plan is your host’s one-click restore, test that. If it is a manual import, do it manually.
  4. Update the site address carefully. WordPress stores some settings as serialized data, which records the length of each text value. A plain find-and-replace on the database changes the text without updating those lengths, and it can silently wipe out widget and theme settings. Use a search-and-replace tool that understands serialized data.
  5. Make the copy harmless. Discourage search engines from indexing it, stop it sending email to real users, and put any payment or shipping integrations into test mode. A restored store that starts emailing customers is a fault of its own.
  6. Run the checks described in the next section.
  7. Write down everything that broke, then throw the environment away. Fix the backup process itself, not the staging copy.

That last step is the one people skip. Patching the staging site until it works feels productive, but it teaches you nothing about the next real restore. The fix has to go into how backups are made, so the next snapshot comes back clean without anyone intervening.

The Smoke Checks That Prove the Site Came Back

Loading the restored homepage and thinking looks fine is not a test. We run the same HTTP smoke checks against a restored copy that any real deployment must pass. The reasoning is simple: if those checks are good enough to stand between a code change and the live site, they are the right bar for a site rebuilt from a backup. It also removes the temptation to judge a restore more leniently than a deploy.

The checks that matter most:

  • The homepage returns a 200 status, not a 500 error, and does not redirect to the live domain. A redirect means the address update failed, and every check after it is really testing the live site.
  • A sample of posts and pages return 200 and contain text you expect. Check the content as well as the status code. A PHP failure can produce a blank white page that still returns 200, so a status-only check passes a broken site.
  • The admin login page loads, and you can actually log in. This confirms the user tables survived and that sessions and security keys behave on the new server.
  • Images load from the restored uploads folder. Request a handful of media files directly. Missing uploads are one of the most common silent gaps.
  • Stylesheets and scripts return 200. A page that loads without its theme files usually points to missing folders or broken paths.
  • A URL that should not exist returns a genuine 404. If it returns the homepage or a server error instead, the rewrite rules did not survive.
  • The sitemap loads. It is a quick way to confirm that permalinks and SEO plugin settings came through intact.

Automate these checks if you can, so they run the same way every quarter and nobody quietly skips one because the homepage looked right. The purpose is to catch the fault you were not expecting, and those are the ones human eyes skim past.

Why We Keep Eight Snapshots, Not One

Testing that your newest backup restores is essential, but the newest backup is not always the one you need. Our snapshots rotate eight deep. Taken weekly, that gives roughly two months of history to fall back on.

The reason is that many problems are discovered late:

  • Compromises often sit quietly. Injected code can wait weeks before it starts redirecting visitors or sending spam. By the time anyone notices, every recent backup contains the infection.
  • Some data damage is gradual. A faulty plugin update might corrupt settings or post data in a way nobody spots until a customer reports it.
  • Human mistakes surface slowly. A page deleted or overwritten by an editor may not be missed for a month.

If you only keep last week’s backup, each of these turns a restore into a choice between a broken site and an infected or damaged one. Depth gives you a clean point to return to. In cases like these you may also need a targeted recovery, such as pulling a single deleted page out of an older snapshot rather than rolling back the whole site and losing weeks of legitimate changes.

There is a catch. Depth only helps if the older snapshots restore as well. The quarterly drill tests the newest one because that is the most likely emergency choice, and when the backup process has not changed, older snapshots made the same way usually behave the same way. Watch for events that break that assumption: a host migration, switching backup plugins, or a major change to which folders are included. After any of these, the older snapshots in your rotation were made by a different process. Test one from each side of the change.

Two months covers most late discoveries. If your site is one where a problem could plausibly go unnoticed for longer, consider keeping an occasional long-term archive outside the normal rotation.

Running Your Own Restore Drill

You do not need a dedicated operations team to test your backups. You need a schedule and the willingness to do it while nothing is on fire. Here is a practical way to start:

  1. Put it on the calendar quarterly. Four times a year is frequent enough to catch drift in your setup and infrequent enough that it actually gets done.
  2. Find out what your backup includes. Before the first drill, check your plugin or host settings for excluded folders, whether the database is fully included, and whether configuration files are part of the archive. Many surprises can be spotted here before you ever import anything.
  3. Store at least one copy off the server. A backup kept only on the same hosting account will not help if that account is lost or compromised. Include fetching it from that off-site location in the drill.
  4. Time the whole restore. Measure from I need the backup to the checks pass. That figure is your realistic minimum downtime in a real incident, and it is often longer than people assume.
  5. Write the steps down as you go. The notes from your first drill become your recovery runbook. In a real emergency you will be working from them, possibly late at night and under stress.
  6. Fix the process, then run it again. If the drill finds faults, and the first one probably will, correct how backups are made and repeat the drill with a fresh snapshot. A fix you have not re-tested is another guess.
  7. Drill again after big changes. Moving hosts, upgrading PHP, swapping backup tools, or adding a large plugin such as a store or membership system should trigger an extra test outside the normal schedule.

Expect the first drill to be uncomfortable. Ours found six faults that a dry run had passed without complaint. That discomfort is the whole point. Every problem you find in a disposable staging copy on a quiet afternoon is one you will not discover on your live site during an outage. Once a backup has been restored, its checks have passed, and the faults have been fixed, it stops being a guess and becomes a recovery plan.

Does Your Site Have This Problem?

Every check in this article runs automatically on the sites we look after. You can run the same health checks on your own site in seconds with the free SiteHale plugin — no account, nothing transmitted anywhere. Or have us do it: we’ll crawl your site and send you a written report, free.

Get My Free Site Report

Leave a Comment