Free, independent guides since 2010

Hosting & domains

Website backups: the 3-2-1 rule for site owners

How to back up your website properly: what to include, how often, the 3-2-1 rule, why your host’s backup is not enough and how to test a restore.

<guide section="Hosting & domains" type="article" read="2 min"/>

Hacked sites, a failed update, an accidental delete, a hosting company that goes bankrupt: sooner or later every website owner needs a backup. The question is whether you have one that works. This guide explains how to set up backups that will actually save you.

What a website backup must contain

  • Files – your HTML, PHP, themes, plugins, uploaded images and documents.
  • Database – for WordPress and most CMSs, all posts, pages, users, orders and settings live here.
  • Configuration – .htaccess, redirect files, wp-config.php and similar settings.
  • Outside your site – a list of your DNS records and email settings, and your domain and hosting login details in a password manager.

The 3-2-1 rule

The classic backup rule works for websites too:

  1. 3 copies of your data: the live site plus two backups.
  2. 2 different types of storage, for example your hosting server and a cloud storage service.
  3. 1 copy off-site: outside your hosting company, so one disaster cannot take everything.

Many people add a “1” for an offline or immutable copy that ransomware or an attacker with your password cannot delete.

Why your host’s backup is not enough

Most hosts make backups, and they are useful for quick restores. But they are usually stored with the same company, are kept for a limited time and may be excluded from your contract’s guarantees. If your account is suspended, hacked or the host disappears, so do the backups. Read the small print – and see our checklist on choosing a hosting plan.

How often?

Type of siteSuggested frequency
Static site or rarely updated brochure siteAfter every change, plus monthly
Blog with weekly postsWeekly full backup
Webshop or membership siteDaily database, weekly files, before every update

Test your restore

Twice a year, restore a backup to a test location – a subdomain or a local machine – and check that the site works. You will discover missing database tables, forgotten upload folders and expired passwords while nothing is on fire yet.

Frequently asked questions

How often should I back up my website?

As often as you can afford to lose work. A blog with a weekly post can live with weekly backups; a webshop with daily orders needs at least daily database backups.

Are WordPress backup plugins good enough?

They can be, as long as they store copies outside your hosting account (cloud storage, for example) and you test a restore now and then.