How to back up a WordPress site

A backup you've never restored is a hope, not a plan. Here's what to back up, how often, where to keep it, and how to prove it works.

What a full backup contains

A WordPress site lives in two places, and you need both:

  • The files. WordPress itself, your theme, your plugins and, most importantly, wp-content/uploads, where every image and PDF you've ever added is stored.
  • The database. Every page, post, product, order, comment, user and setting. Without it, the files are an empty shell.

A backup of only one of these is not a backup. Plenty of people find this out the hard way.

How often?

Your siteBack up at least
Brochure site, rarely editedWeekly, and before every change
Blog or news siteDaily
Shop or membership siteDaily, ideally more often

The real rule: back up more often than you can bear to lose. If redoing a day's orders would hurt, back up every day.

The 3-2-1 rule

Keep 3 copies of your data, on 2 different kinds of storage, with 1 copy somewhere else entirely. For a small site that can be as simple as: the live site, your host's off-site backups, and a monthly download to your own computer or cloud drive.

Three ways to take a backup

1. Your host's backups

The easiest. Good hosts back up automatically and keep a copy away from the server your site runs on. On Ratlan, every site is backed up nightly and copied off-site, and you can restore the whole site or a single file from the control panel.

2. A backup plugin

Plugins such as UpdraftPlus can send backups to Google Drive, Dropbox or S3 on a schedule. Useful as your "somewhere else" copy. Check the plugin is backing up the database as well as the files.

3. By hand

Download the files over SFTP or the file manager, and export the database as an .sql file from your control panel's database tool. Slow, but good to know how to do once.

Test a restore

Once a quarter, prove your backup works:

  1. Pick a recent backup.
  2. Restore it somewhere that isn't your live site: a staging site, a second site on your plan, or a local copy on your computer.
  3. Log in, open a few pages and check recent images are there.

If anything is missing, you've found the problem on a quiet Tuesday, not in the middle of a disaster.

Before every big change

Take a fresh backup before updating WordPress, changing theme, installing a big plugin or editing code. On Ratlan, scheduled updates do this for you and roll back automatically if the site breaks afterwards.

Every Ratlan plan includes nightly off-site backups with self-service restore. See plans or ask us to move your site.

Get your site online today

Pick a plan, pay by card and your hosting is ready straight away. If you're moving from another host, we'll bring your site over for free.