Care & growth ·

Backups that actually restore: a simple plan for your website

What to back up, how often, where to keep it and how to prove a restore works. A simple website backup plan for WordPress, Shopify and custom sites.

By Kareem Mohamed, Web Developer at Digital House

Backups that actually restore: a simple plan for your website

A website backup is only worth something on the day you restore it, and that is exactly the day many owners discover theirs is missing, incomplete or months old. This article gives you a simple plan: what to back up, how often, where to keep it, and how to test that a restore really works, whether your site runs on WordPress, Shopify or custom code.

What a complete backup includes

A website is more than the pages you see. To bring it back after a failure you need every part that makes it run, and some of those parts are easy to forget.

  • Files: the theme, plugins and, above all, the uploads folder with every image and document your team has added over the years.
  • Database: pages, posts, products, orders, form entries, users and settings. On most CMS sites this is where the real content lives.
  • Configuration: files such as wp-config.php or a custom site's .env, which hold database details and keys. Store these copies securely, because they contain secrets.
  • Code: for custom sites, the source in a Git repository, so any version can be rebuilt.
  • DNS records: an export of the zone, so the website and email can be pointed correctly again.
  • Accounts list: where the hosting, domain, licences and logins are, and who owns them.

Email is not part of a website backup. If your mailboxes live on your hosting account, they need their own plan, and that is one more reason I prefer keeping email with a dedicated provider rather than on the web server.

Shopify is a special case. Shopify runs the platform, but restoring a deleted product, a broken theme edit or overwritten content is largely your responsibility. Duplicate the theme before every edit, export products and customers regularly, and consider a backup app if the store changes daily.

How often, and how long to keep copies

Ask one question: how much work could you afford to lose? That answer sets the frequency.

  • A company website that changes monthly: a weekly automatic backup, plus a manual one before every update or edit session.
  • A site with a blog, bookings or form entries stored in the database: daily.
  • An online store taking orders: daily at the very least, and more often during busy periods.

Retention, how long you keep old copies, matters as much as frequency. Malware and mistakes often sit unnoticed for weeks, and if you only keep the last seven days, every copy you have may already be affected. As a rough guide, I like a month of daily copies plus monthly copies going back several months.

Infographic comparing your hosting company's backups with your own off-site backups on control, storage location, surviving an account suspension, retention and restore testing.
Infographic comparing your hosting company's backups with your own off-site backups on control, storage location, surviving an account suspension, retention and restore testing.

Where to keep backups: the 3-2-1 rule

The classic rule still works: keep three copies of your data, on two different kinds of storage, with one copy off-site. For a website, that usually means the live site, the host's own backups, and a separate copy in cloud storage under an account your business owns, such as Google Drive, Dropbox, Amazon S3 or Backblaze.

The off-site copy is the one that saves you. A host's backups do not help if the hosting account is suspended over a billing problem, compromised, or closed by the agency that set it up. On WordPress, a reputable backup plugin can send copies to cloud storage on a schedule. For custom React and Node sites, the code already lives in Git, so the database and uploaded files are what need scheduled copies.

# Nightly MySQL dump, compressed and dated (credentials from a protected config file)
mysqldump --defaults-extra-file=~/.backup.cnf --single-transaction shop_db \
  | gzip > ~/backups/shop_db-$(date +%F).sql.gz

Whatever tool you use, the storage account should belong to the business, with two-factor authentication on, and at least one person outside the developer who knows how to reach it.

Testing a restore: the step everyone skips

A backup that has never been restored is an assumption. Files can be incomplete, databases can be cut off halfway, and plugins can quietly stop running after an update. The only proof is a restore.

  • Every few months, restore the latest backup to a staging copy or a spare subdomain, never over the live site.
  • Click through the key pages, check that images load, log in, and submit a form.
  • On a store, confirm recent orders and products are there.
  • Time how long it takes, so you know what to expect on a bad day.
  • Write the steps down in a short document that someone else could follow.

Decide in advance who carries out a restore and who approves it. On a store, restoring yesterday's database also removes today's orders, so someone needs to know to export recent orders first. These are easy decisions on a calm day and hard ones in the middle of an outage.

I would rather find out a backup is broken on a quiet Tuesday than on the day the site is down.

What should I do if I have no backup at all?

Start today, before anything else. Take a full manual backup through your host's control panel or a backup plugin, download it, and store it somewhere safe. Then check whether your host keeps automatic copies you did not know about; many do, for a limited time.

If the site is already broken and no backup exists, recovery gets harder. Your host may hold older snapshots, the Internet Archive's Wayback Machine may have captured public pages, and your own files may hold the original images. It is slow, partial work, which is exactly why the plan above exists.

Making backups part of the routine

Backups are one line in a wider routine of updates, security and monitoring; the website maintenance guide shows how they fit together. They are also your safety net against attacks, which is why they appear in the website security checklist and the WordPress hardening steps. If you are choosing new hosting, compare backup retention and self-service restores as carefully as price; choosing web hosting in the UAE covers what else to check.