How to test a website backup before you need it

How to test a website backup by restoring it, what a full restore has to include, how often to do it, and what to write down.

Short answer: To test a website backup, restore it somewhere that isn't the live site, then check that the pages load, that you can log in, and that the newest order or enquiry you expect is there. Time how long it took and write the steps down. Repeat on a schedule, and after any big change to the site.

Most small companies will tell you their website is backed up. Ask when someone last restored it, and the room goes quiet. The hosting panel shows a green tick, a plugin sends an email every night, and nobody has ever opened one of those files to see what's inside.

A backup only proves itself on the day you restore it. This article is about making that day a planned one.

What does a website backup have to contain?

A website is usually more than one thing, and a backup that covers only part of it restores a broken site. Go through this list and say, for each line, where the copy is.

PartWhat it isWhat happens without it
DatabasePages, products, orders, users, settingsThe site starts empty, or doesn't start
Uploaded filesImages, documents, anything added through the adminPages load with broken images and dead downloads
CodeThe theme, plugins or the application itselfYou have the content and nothing to show it with
ConfigurationEnvironment settings, API keys, scheduled jobs, redirectsThe site loads, but payments, emails or integrations fail
DNS and domain recordsWhere the domain points, and the email recordsThe site is restored and nobody can reach it

Code is the easy part if it lives in a repository, because the repository is already a copy with history. The database and the uploads are where the unique data is, and they change every day.

Where should the backup be stored?

Not only on the server it protects. If the server is lost, hacked or closed for an unpaid invoice, a backup sitting on the same disk goes with it.

The usual rule of thumb is called 3-2-1: three copies of the data, on two different kinds of storage, with one of them somewhere else. For a small website that can be as simple as the live site, a copy at the hosting provider, and a copy in a storage account at a different company.

Two more questions are worth asking:

  • Whose name is the storage account in? If it's your developer's, your backups leave when they do. We wrote about that situation in what to do when your developer has disappeared.
  • Can the website delete its own backups? If the site's credentials can remove the copies, so can anyone who breaks into the site. The copy elsewhere should be one the website can add to but not erase.

How do you run a restore test?

The point is to do the whole thing once, calmly, as if the live site were gone.

  1. Pick a place that isn't production. A staging server, a second hosting account or a developer's machine. Never test a restore over the live site.
  2. Start from nothing. Use only the backup files and your written notes. If you need something that isn't in either, you've found the first gap.
  3. Restore every part. Database, uploads, code, configuration.
  4. Check it like a visitor and like an admin. Open the main pages, log in, open the newest order or form entry you know exists, and look at a page with many images.
  5. Check what is switched off. A restored copy must not send emails to real customers or take real payments. Confirm that before you click anything.
  6. Time it. From "we need the backup" to "the site works". That number is what you can honestly promise the business.
  7. Write it down. The steps, where the files are, who has access, and what went wrong this time.

The first test almost always finds something: a missing folder, a password nobody has, a file too large to download in reasonable time. That's the test working.

How old can the data be, and how long can the site be down?

These are two separate decisions, and they belong to the business, not to the developer.

  • How much data can you afford to lose? If the backup runs once a night, a failure at five in the afternoon loses a day of orders. For a brochure site that's nothing. For a shop it may not be acceptable, and the backup has to run more often.
  • How long can the site be down? Your restore test gave you a real number. If the business needs it shorter, that's a change to the setup, and it's better to know now.

You'll see these called the recovery point and the recovery time. The names matter less than having an agreed answer to each.

How often should you test?

There's no single correct interval. A reasonable start is a full restore test a few times a year, and again after anything that changes the shape of the site: a move to a new host, a new shop system, a large plugin or platform upgrade. In between, a quick check that last night's file exists and isn't empty catches the most common failure, which is a backup job that quietly stopped.

Put the test in a calendar with a name next to it. A task that belongs to nobody doesn't get done.

What should be written down?

One page is enough. It should let a competent stranger restore the site:

  • What is backed up, how often, and how long copies are kept.
  • Where each copy is stored, and whose account it is.
  • Who can access it, and where the credentials are kept.
  • The restore steps, in order.
  • The date of the last test and how long it took.

Keep that page somewhere that isn't the website.

Restored backups are part of how we set up hosting, described on our DevOps and cloud page, and checking them is part of maintenance and support. If you aren't sure what your current backup covers, book a free call and we'll go through the list with you.

Related service

Keep reading

Not sure your backups work? Let's find out.

Book a free call

Free 30-minute call · No obligation · Reply within 24h

Not ready for a call? Get a free website check, a $49 website and SEO audit, or write to us from the contact page.