Black Friday

Your professional website for 360 USD: domain, hosting, maintenance and 2 email accounts included the first year.

No lock-in contract, with real people behind it. We want you to be a happy client.

Give your business its own place on the internet. This is the offer to get started.

See the offer

Backups: the 3-2-1 strategy explained

Disco duro externo conectado a un portatil para hacer una copia de seguridad

Everyone knows you need to back up your website. Very few check that the backups work until the day they need them, and by then it’s too late. This guide explains the 3-2-1 backup rule, how to apply it to a WordPress site without complicating your life and, above all, how to check that your backups are usable.

Quick summary

  • The 3-2-1 rule: 3 copies of your data, on 2 different media and 1 off-site (CISA recommends it as a starting point).
  • In WordPress, back up the database and the wp-content folder (images, themes, plugins) plus wp-config.php.
  • A backup you’ve never restored is a hope, not a backup: schedule restore tests.
  • Protect your backups: encrypted, with credentials different from your website’s and outside public folders.

Why backups fail

Almost nobody loses their website for lacking backups. They lose it because they have backups that don’t work. The most common causes are always the same:

  • They’re on the same server. If the server fails or gets infected, you lose the website and the backup at the same time.
  • They were never tested. The file is there, but it’s incomplete or can’t be restored.
  • They share credentials. Whoever gets into your website can also delete the backups.
  • They’re too old. The latest one is months old and you’ve lost orders or content.
  • Nobody knows how to restore them. In the middle of a crisis is not the time to learn.

The 3-2-1 rule, calmly explained

The 3-2-1 rule: three copies, two different media and one off-site copy
The 3-2-1 rule: three copies, two different media and one copy off-site.
  • 3 copies: the original (your live website) and two backup copies.
  • 2 different media: for example, the server and a cloud storage service, or an external drive. That way a failure of one type of media doesn’t take all the copies with it.
  • 1 off-site copy: in another physical or logical location, to survive a serious incident at your host.

It’s the rule the U.S. cybersecurity agency CISA recommends in its Data Backup Options document, and it remains an excellent starting point. In environments at risk of ransomware, it is extended to 3-2-1-1-0: one immutable or isolated copy (one that nobody can modify or delete) and zero errors when verifying that it can be restored.

What to back up on a WordPress site

WhatWhyIndicative frequency
DatabaseContains posts, pages, settings, users and ordersDaily (or more often if it changes a lot)
wp-content/uploadsUploaded images and documentsWeekly, or on every major change
wp-content/themes and pluginsYour design and features (free ones can be reinstalled)Weekly or after changes
wp-config.phpYour installation’s credentials and keysAfter every change
Server configurationRules, domains, emails, scheduled tasksDocumented and reviewed every quarter
The WordPress core doesn’t need to be backed up: it can be downloaded again.

How to do it in practice

There are four common paths. Combining two is usually ideal:

OptionAdvantageLimit
Host backupsEffortless and often automaticUsually with the same provider: they don’t meet the “off-site” requirement
Backup plugin with an external destinationSchedulable, with cloud storageDepends on the plugin being maintained and working
Manual backup with WP-CLI or the dashboardFull and verifiable controlRequires discipline and knowledge
Maintenance serviceSomeone takes care of it and checksThe scope needs to be well defined
A good setup combines host backups and an external copy.

If you have terminal access, WP-CLI lets you export the database with a single command, and you can then compress the content folder:

wp db export copia-$(date +%F).sql
tar -czf contenido-$(date +%F).tar.gz wp-content/uploads wp-content/themes wp-content/plugins wp-config.php
Data storage devices arranged on a gray surface
Each medium has its role: having copies in different places is what makes them reliable.

Frequency and retention: how much and for how long

Frequency depends on how much your website changes: a blog that publishes once a month needs fewer backups than a store that receives orders daily. The key question is how much work you can afford to lose:

Backup schedule: database daily, files weekly, full copy monthly and restore test quarterly
Recommended backup schedule: daily for the database, weekly for files, monthly for a full copy and quarterly for the test.

And keep several versions, not just the latest: a problem can go unnoticed for days. A common scheme, as an example, is to keep the last seven daily, the last four weekly and the last three monthly backups.

The restore test: what nobody does and everyone should

Do this check at least once a quarter, and always in a test environment, not on your live site:

  1. Download the most recent backup from its external location (this confirms that access works).
  2. Restore it in a test environment or a private subdomain.
  3. Check that the pages, images and menus display correctly.
  4. Test dashboard access, the forms and, if you sell, a test order.
  5. Note how long it took: that’s your real recovery time.
  6. Document the steps so anyone can repeat them.

Protect your backups too

  • Encrypt them if they contain customers’ personal data.
  • Use different credentials from your website’s, with two-factor verification.
  • Never leave them in public folders on the server: a .zip file accessible by URL is a gift to an attacker.
  • Consider an immutable copy, one that can’t be deleted for a period, to withstand ransomware.
  • Control who has access and review permissions regularly.

Backups are one piece of a larger whole. They fit with measures like those we explain in WordPress security: the 10 measures that matter.

Common mistakes

  • Relying only on the host’s backup, with no external copy.
  • Backing up the database but forgetting the uploaded files (or vice versa).
  • Not checking the result of each scheduled backup: sometimes they fail silently.
  • Storing backups in the same account and with the same password as the website.
  • Not knowing how to restore until there’s an emergency.

A plan to get it sorted in one afternoon

  1. Make a full backup now and download it to your computer.
  2. Turn on automatic daily database backups.
  3. Set up an external destination (cloud) with its own credentials.
  4. Define retention: how many versions you keep.
  5. Schedule a quarterly restore test in your calendar.
  6. Document the procedure in a one-page document.

Frequently asked questions

How often should I back up?

It depends on how much your website changes. For the database, daily is a reasonable guideline; for files, weekly. If you receive orders or forms continuously, consider more frequent backups.

Is my host’s backup enough?

It’s a good foundation, but it rarely meets the “off-site” requirement, because it’s with the same provider. Add an external copy with its own credentials.

Where do I store the backups?

On at least two different media and one external location: for example, the server, a cloud service and a periodic download to a drive of your own.

How many backups do I keep?

Several versions. A common example: seven daily, four weekly and three monthly. Adjust according to risk and space.

How do I know a backup works?

Only by restoring it in a test environment. Do it at least once a quarter and note how long it takes.

Would you rather have someone take care of it and verify it?

Our maintenance includes backups, checks and support with a clear scope from day one.

Sources and recommended reading