# Website backups: what to back up, how often and how to test a restore

> The 3-2-1 backup rule for websites, what files and databases to include, how often to back up and a safe way to test a restore.

Source: https://comparehostingonline.com/guides/website-backups-guide/

## Short answer

Back up the files and the database, keep at least one copy away from your host, and test a restore. Hosts often include daily backups, but you should not rely on one copy you do not control.

Last verified Nov 28, 2026 · [How we test](https://comparehostingonline.com/methodology/)

At a glance

-   **Why do websites need backups?** Sites are lost in ordinary ways: a bad update breaks the layout, a plugin has a vulnerability, a hacked account is used to…
-   **What should a website backup include?** Site files: themes, plugins, uploads, configuration and any custom code.
-   **What is the 3-2-1 rule?** Keep three copies of your data, on two different kinds of storage, with one copy off-site.

## Why do websites need backups?

Sites are lost in ordinary ways: a bad update breaks the layout, a plugin has a vulnerability, a hacked account is used to delete files, a mistake overwrites the database, or the host has a failure. A backup turns each of these from a disaster into an afternoon of work. Without one, there may be no way back.

It also makes everything else easier. Before a PHP upgrade, a migration or a big edit, a fresh backup means you can try the change without fear. Our [website migration checklist](https://comparehostingonline.com/guides/website-migration-checklist/) and [PHP versions guide](https://comparehostingonline.com/guides/php-versions-on-hosting/) both start with one.

## What should a website backup include?

-   Site files: themes, plugins, uploads, configuration and any custom code.
-   The database: posts, pages, orders, users and settings. For many sites this is the most valuable part.
-   Email, if mailboxes live on the same account; see [moving email to a new host](https://comparehostingonline.com/guides/move-email-to-new-host/).
-   DNS records and a list of installed plugins and versions, so you can rebuild if needed.
-   Server configuration on a VPS, such as web server settings and cron jobs.

## What is the 3-2-1 rule?

Keep three copies of your data, on two different kinds of storage, with one copy off-site. For a website that means the live site, a backup on your host, and a copy in separate storage that you control, for example cloud object storage or your own computer. If the host account is compromised or deleted, the off-site copy survives.

| Copy | Where | Protects against |
| --- | --- | --- |
| Live site | Your host | Nothing, it is the original |
| Host backup | Same provider, other storage | Bad updates, accidental deletion |
| Off-site copy | Separate provider or your own storage | Host failure, account loss, ransomware |

## How often should you back up?

Match the frequency to how much work you can afford to lose. A brochure site that changes monthly is fine with weekly backups. A blog with daily posts needs daily backups. A shop that takes orders all day should back up the database several times a day or use continuous, point-in-time backup, and always before updates. Keep several generations, for example daily for a week and weekly for a month, so you can go back to before a problem began, because some problems are noticed late.

## What are the ways to take backups?

The WordPress developer documentation describes the files and database that make up a WordPress backup and the options for creating one.

| Method | Good | Limits |
| --- | --- | --- |
| Host backups | Automatic and convenient | Often same account; retention varies; check restore options |
| Control panel backup | Full account in one file | Manual unless scheduled |
| Plugin (WordPress) | Schedules to remote storage | Needs maintenance and resources |
| Snapshots (VPS or cloud) | Fast whole-server image | Usually stored with the provider |
| Scripts and rsync | Flexible and cheap | You must write and monitor them |

## How do you test a restore?

A backup you have never restored is a hope, not a backup. Schedule a restore test a few times a year.

1.  1
    
    **Pick a backup**
    
    Choose one at random, not only the latest.
    
2.  2
    
    **Restore to staging**
    
    Never test on the live site; see what a staging site is.
    
3.  3
    
    **Check the site**
    
    Pages, images, forms, logins and checkout should work.
    
4.  4
    
    **Time it**
    
    Note how long the restore took, so you know your recovery time.
    

## What are the most common backup mistakes?

-   Keeping backups only on the same server as the site.
-   Backing up files but not the database, or the other way round.
-   Never testing a restore.
-   Storing backups unencrypted in a place others can reach.
-   Assuming the host backs up everything, forever. Read the terms: retention and restore fees vary; see [hosting money-back guarantees](https://comparehostingonline.com/guides/hosting-money-back-guarantee/) for how to read provider terms.

## What should you look for in a host’s backup features?

Ask how often backups run, how long they are kept, whether you can restore a single file or table without a support ticket, and whether backups are stored apart from your account. [Managed WordPress hosts](https://comparehostingonline.com/hosting-types/managed-wordpress/) usually include daily backups and one-click restores; budget shared plans often charge for them. Compare this on our [best web hosting](https://comparehostingonline.com/best/web-hosting/) list and ask [support](https://comparehostingonline.com/guides/test-hosting-support-before-buying/) before you buy.

## A worked example: recovering from a bad update

A site owner updates a major plugin on a Friday evening. The checkout page now shows an error. They have daily backups from the host and a weekly off-site copy. They open the host’s backup tool, choose the backup from that morning and restore only the plugin folder and the database to a staging copy first. The restore works, so they apply it to the live site and the checkout returns. Total downtime: about twenty minutes. The owner then reports the bug to the plugin’s developer and delays the update until a fix is released.

Without the backup they would have faced hours of debugging with customers unable to pay. The backup turned a crisis into a small inconvenience.

## What should a written backup plan say?

| Item | Example |
| --- | --- |
| What is backed up | Files, database, email, DNS record list |
| How often | Database daily, files weekly, extra before updates |
| Where it is stored | Host copy plus off-site storage |
| How long it is kept | Daily for 7 days, weekly for 4 weeks |
| Who checks it | A named person, monthly |
| How restores are tested | On staging, quarterly |

## Sources and further reading

-   [WordPress developer documentation: backups](https://developer.wordpress.org/advanced-administration/security/backup/)
-   [WordPress developer documentation: migrating a site](https://developer.wordpress.org/advanced-administration/upgrade/migrating/)
-   [CISA: Secure our world](https://www.cisa.gov/secure-our-world)

## Common questions

How often should I back up my website?

Match it to how much you can afford to lose. A monthly-updated brochure site can use weekly backups, a blog daily, and a shop several database backups a day plus one before every update. Keep several generations so you can go back further.

What should a website backup include?

The site files (themes, plugins, uploads, configuration) and the database, plus email if it lives on the account and a record of your DNS settings. A backup missing the database is usually useless for a dynamic site.

Is my hosting company's backup enough?

It helps but is not enough alone. Host backups can fail, be deleted with the account or have short retention. Keep at least one copy elsewhere that you control, and check that you can restore without paying for it.

Where should I store backups?

Away from the server they protect, ideally in different storage and a different provider, such as cloud object storage or your own computer. Encrypt anything sensitive and restrict access so a compromise of one place does not expose all copies.

How do I test a website restore?

Restore a backup to a staging site, not the live one, and click through pages, forms, logins and checkout. Time the restore. Do this a few times a year, because a backup that has never been restored may not work.

## Related

[Transfer a WordPress site](https://comparehostingonline.com/guides/transfer-wordpress-to-new-host/) [Managed WordPress hosting](https://comparehostingonline.com/hosting-types/managed-wordpress/) [Best web hosting](https://comparehostingonline.com/best/web-hosting/)

## More guides

[What is TTFB (time to first byte)? What is a good value and how to improve it](https://comparehostingonline.com/guides/what-is-time-to-first-byte/) [Cloud hosting vs VPS hosting: differences, costs and which to choose](https://comparehostingonline.com/guides/cloud-vs-vps-hosting/) [Managed vs unmanaged VPS: who does what and which to choose](https://comparehostingonline.com/guides/managed-vs-unmanaged-vps/) [How to secure a new VPS: a first-hour hardening checklist](https://comparehostingonline.com/guides/how-to-secure-a-vps/) [What is DDoS protection in hosting? What it covers and what to ask](https://comparehostingonline.com/guides/what-is-ddos-protection/) [What is a web application firewall (WAF)? How it works and when you need one](https://comparehostingonline.com/guides/what-is-a-web-application-firewall/)

MH

**[Muhammad Hamza](https://comparehostingonline.com/team/muhammad-hamza/)** Founder & Editor

Writes and signs off every comparison, and runs the compliance reviews. Has worked on SOC 2 and HIPAA compliance programs for companies.

Our [editorial policy](https://comparehostingonline.com/editorial-policy/) and [testing method](https://comparehostingonline.com/methodology/) are public.
