Site backup and restore

Site backup and restore, explained

A backup is what gets a site back after a bad update, a deleted file or a server failure. Here is why to keep one, what to back up, and how to test that a restore actually works.

5 chapters and a backup checklist

Why back up your site

A backup is the way back after a hard drive fails, an update breaks something, or a file or database table is deleted by mistake. Without one, that work is gone.

It matters most right before a risky change, such as a plugin update, a theme change or a migration.

Key points

  • Recovers from hardware failure, bad updates and mistakes
  • Take one before any risky change
  • No backup means no way back

The 3-2-1 backup rule

A common rule of thumb for backups: keep 3 copies of your data, on 2 different types of storage, with at least 1 copy kept off-site, away from the original server.

The off-site copy is what protects you if the server itself is lost, not just a single file.

Key points

  • 3 copies of your data
  • On 2 different types of storage
  • At least 1 copy off-site

What to back up

For a website, that usually means three things: the site files (code, themes, plugins, uploads), the database (pages, posts, orders, settings) and, separately, your email if it is hosted with the site.

Missing any one of these makes a restore incomplete, even if the others are fine.

Key points

  • Site files
  • Database
  • Email, if it is hosted separately

Backup vs snapshot

A backup is a copy of specific files and data, stored separately from the server, good for keeping history and restoring individual items.

A snapshot is a point-in-time image of a whole server or disk, such as a droplet snapshot, good for a fast rollback of the entire machine. Droplet snapshots

Key points

  • Backup: specific files and data, kept separately
  • Snapshot: the whole server at one point in time
  • Snapshots roll back fast; backups keep more history

How often, and testing a restore

Back up as often as your data changes: daily for a store or an active blog, less often for a site that rarely changes, and always before a major update or migration.

A backup you have never restored is unproven. Test a restore on a copy of the site now and then, not only when something has already gone wrong.

Key points

  • Match the frequency to how often data changes
  • Always back up before a major change
  • Test a restore before you actually need one

Where backups live

Backup and snapshot storage at Cloudoora.

Storage Box

Separate backup storage from 1.1 TB to 22 TB, from €4.17/month, with up to 40 snapshots. Storage Box plans

Checklist

Backups: do and avoid.

Do

  • Keep an off-site copy

    Not only on the same server as the site.

  • Back up before big changes

    Updates, migrations and major edits.

  • Cover files, database and email

    A partial backup makes for a partial restore.

  • Test a restore now and then

    Before you actually need one.

Avoid

  • Keeping only one copy

    One failure can take the backup with it.

  • Backing up the files but not the database

    Most sites need both to work at all.

  • Assuming a snapshot is a backup

    They serve different jobs; see the difference above.

  • Waiting for a failure to check your backups

    Test a restore before you are relying on it.

FAQ

Backup and restore questions

Does Cloudoora back up my site?

Premium Shared hosting includes 3-layer backups with extra backup storage. You can also keep your own backups on a Storage Box, or take snapshots of a VPS.

What is the 3-2-1 backup rule?

Keep 3 copies of your data, on 2 different types of storage, with at least 1 copy off-site.

What is the difference between a backup and a snapshot?

A backup copies specific files and data for restoring individually. A snapshot is a point-in-time image of a whole server, for a fast full rollback.

How often should I back up my site?

As often as your content changes: daily for an active site or store, less often otherwise, and always before a major update.

How do I know my backup will actually work?

Restore it to a copy of the site and check it, rather than assuming it will work when you need it.

Where should backups be stored?

Somewhere separate from the live server, such as a Storage Box, so a problem with the server does not also take out the backup.

Keep a backup before you need one.

Storage Box plans from 1.1 TB, from €4.17/month.