Website owner testing a restore workflow from a verified backup on a staging laptop

Editorial illustration; it does not show a real website or backup system.

Published on October 25, 2026.

Almost every hosting panel and maintenance retainer promises automatic daily backups. You get a green checkmark in the dashboard, a folder full of .tar.gz archives, and maybe a weekly email saying “Backup completed successfully.” Then a WooCommerce update breaks checkout on a Friday evening, or a bad deployment overwrites production configuration, and you learn the hard way that nobody knows which archive is complete, where the database password lives, or whether the SQL dump even imports without errors.

That is the gap between having backups and having a recovery capability. A backup is just raw ingredients sitting in storage. Recovery is a tested recipe that someone else on your team can follow under pressure.

What a real website backup must capture

A modern website is rarely just a folder of HTML files. Whether you run WordPress, Drupal, or a custom ASP.NET Core app with a database, a usable recovery point usually requires four pieces together:

  1. Application code and configuration — the CMS core, themes, plugins or modules, custom code, and environment configuration (without committing production secrets to public Git).
  2. User-generated uploads — images, PDFs, invoices, and media files under wp-content/uploads/ or sites/default/files/ that are never stored in your source repository.
  3. The database — posts, users, permissions, orders, and serialized settings.
  4. The recovery context — DNS records, PHP or .NET runtime versions, required extensions, cron jobs, and the exact commands needed to wire everything back together.

Backing up only the web root leaves you with a broken shell and no content. Exporting only the database preserves your articles and orders while losing every product image and custom script. Before you even start a restore drill, define what “back online” actually means for that site: can a visitor load an article with images, can an admin log in, and can a customer submit a contact form or test order?

Why a “completed successfully” job proves very little

Backup scripts only report whether they managed to copy files or run mysqldump without crashing. They do not verify that the site boots from those artifacts. I have seen “successful” backups where a database export silently truncated because disk space ran out, where a media directory was excluded by an old .rsync filter, or where a site relied on an environment variable stored only on the original VPS.

Testing a restore answers the only question that matters during an outage: can you assemble these files into a working site from scratch? CISA’s ransomware guidance makes the same point at an enterprise level—keep isolated backups and test their integrity regularly. For a small business site or client retainer, the principle is identical: recovery should be demonstrated on a staging box, never assumed.

Running a safe restore drill in staging

Set honest recovery targets

Before touching an archive, write down two practical numbers with the site owner:

  • Recovery Time Objective (RTO): How long the site can stay down before it hurts the business (for a brochure site, maybe four hours; for an active store, maybe under one hour).
  • Recovery Point Objective (RPO): How much recent data can be lost if you roll back (24 hours for a blog, or 15–60 minutes for an e-commerce site taking orders).

These numbers do not need to sound impressive. They just need to be honest enough to dictate how often backups run and how simple the restore procedure must be.

Pick an isolated target and a real archive

Never test a restore by overwriting the live database or production files. Spin up a separate staging subdomain, a temporary VPS, or a local Docker environment. Block search engine indexing (X-Robots-Tag: noindex) and route outbound email through a local catcher like Mailpit or Mailhog—or disable SMTP entirely—so a staging test never fires real order confirmations or password resets to actual customers.

Most of the time you will test yesterday’s backup, but occasionally pick one from two weeks ago. If a site was quietly compromised or misconfigured three days ago, the newest backup already contains the problem. Verify the archive checksum or test its integrity before extracting:

# Verify archive integrity before unpacking
gzip -t site-files-2026-10-24.tar.gz
sha256sum -c backup-manifest.sha256

Recreate the runtime and import together

Treat the drill as if the original server is completely gone. Provision the required PHP or .NET version, create a fresh database, and check that required extensions (like intl, gd, mbstring, or pdo_mysql) are present. Restore the codebase and uploads first, then import the database:

# Unpack web files into the staging root
tar -xzf site-files-2026-10-24.tar.gz -C /var/www/staging-site

# Import the database dump into a clean staging database
zcat db-2026-10-24.sql.gz | mysql -u staging_user -p staging_db

Next, update configuration so the staging site points to the staging database and staging URL—never production. For WordPress, wp-cli makes URL replacement straightforward without breaking PHP serialized arrays:

wp search-replace 'https://example.com' 'https://staging.example.com' --all-tables

For Drupal, clear caches and rebuild the container after updating settings.php with drush cr. Always inspect the restored configuration for hardcoded production endpoints, webhook URLs, or live payment gateway keys before opening the site in a browser.

Exercise the journeys that actually matter

Seeing the homepage render is not a finished test. Walk through a short acceptance checklist:

  • Open the homepage, an older blog post, and a page with uploaded media to confirm images load from the restored storage path.
  • Sign in to the admin dashboard with a test account and save a draft post without publishing.
  • Submit a contact form and verify the email lands in your staging mail catcher (Mailpit) rather than a real inbox.
  • Check navigation menus, redirects, search, and any downloadable PDFs.
  • Tail the web server error log (nginx/error.log or apache2/error.log) and check the browser DevTools Console for 404s or 500s.

If the site handles payments, switch the gateway to sandbox mode or test keys. Never run live card transactions during a restore drill.

Time the process and document the missing pieces

Write down how long the restore took from start to finish, the size of the files, and every undocumented step you had to figure out on the fly—such as a missing .htaccess rule, an expired S3 access key, or a file permission fix (chown -R www-data:www-data). Your first drill might take half a day. That is not a failure; it is the whole point of testing before an emergency.

Mistakes that break real recoveries

The most common failure I see is storing backups on the same VPS or hosting account as the live website. If the server disk fails or an attacker gains root or panel access, both the site and its backups vanish together. Keep at least one copy off-site (for example, in Cloudflare R2, Backblaze B2, or an encrypted external store with separate credentials).

Another trap is encrypting backups with a passphrase or KMS key that only one developer knows. A backup nobody else can decrypt when that person is on leave is useless. Store recovery credentials in a shared team password manager and include decrypting the archive as part of the drill.

Finally, avoid leaving staging restores unguarded. Password-protect the staging subdomain with HTTP Basic Auth or Cloudflare Access so Google does not index a duplicate site and strangers cannot poke around half-configured test environments.

Building a lightweight monthly habit

You do not need an enterprise SRE team to keep backups trustworthy. Put a 30-minute recurring reminder on the calendar once a month to restore one client or personal site into a disposable staging container, run the acceptance checklist, and note the date it passed. Every quarter, ask a colleague to run the restore using only your written runbook without verbal hints.

Store that runbook—listing backup locations, prerequisites, exact restore commands, and verification steps—outside the server it protects. For related operational checklists, you can also check Your Website Is Down, but the Server Is Fine: A Practical DNS Troubleshooting Guide and Your Contact Form Is Still Full of Spam: A Layered Fix That Actually Holds Up.

The most reassuring line in any maintenance log is never “Backup job succeeded.” It is “Full restore verified on [date].” Taking half an hour to prove your archives actually boot turns vague optimism into a recovery plan you can rely on when something breaks at 2 a.m.

Sources