# How to back up WordPress: what, how often and where to keep it

> What a WordPress backup must include, how often to run it, where to store copies (S3, Backblaze B2, Cloudflare R2, Dropbox, FTP), and how to test a restore before you need one.

Guide 3 min read · Updated 24 November 2026


A backup you have never restored is a hope, not a plan. Here is what to back up, how often, where the copies should live, and the five-minute test that tells you they work.

Every WordPress site eventually needs a backup: a plugin update that breaks the layout, a bulk edit that goes wrong, a hack, a host that loses a server. The good news is that a solid backup setup is simple. It just has to cover the right things and keep copies in the right places.

## What a WordPress backup must include

A WordPress site is two separate things, and you need both:

- **The database.** All posts, pages, products, orders, users, comments and settings. It changes constantly, especially on a shop or membership site, so it needs the most frequent backups.
- **The files.** Above all `wp-content/uploads` (every image and file you have uploaded), plus themes and plugins. These change less often. Themes and plugins can be downloaded again, but uploads can’t, and custom code may exist nowhere else.

WordPress core files don’t need backing up: you can always download them again. Do keep a copy of `wp-config.php` somewhere safe, since it holds your database details and security keys.

## How often

Match the schedule to how much you could bear to lose:

- **A shop or anything with orders, bookings or sign-ups:** database daily at least, and before every update.
- **A blog or business site that changes weekly:** database weekly, plus before updates.
- **Files:** weekly or monthly is usually enough, depending on how often you upload.

Keep several copies, not just the latest. If a problem started ten days ago and you only have yesterday’s backup, the backup has the problem too. [Database Backups](https://togglework.app/features/core/backups/) runs scheduled database backups, keeps the last few, and restores one in a click.

[![Database Backups settings screen in the Toggleworks WordPress plugin, showing Automatic backups, Keep the last, Skip log tables](https://togglework.app/wp-content/themes/toggleworks-site/assets/img/parts/core-backups.webp?v=1795524154)](https://togglework.app/features/core/backups/)

Database Backups: schedule, keep the last few, restore in a click.

Log tables (activity logs, email logs, 404 logs) can be large and are rarely worth restoring. Leaving them out keeps backups small and quick.

## Where to keep the copies: the 3-2-1 rule

The classic rule is **3 copies, on 2 kinds of storage, with 1 off-site** . For a WordPress site, that translates to:

1. The live site itself.
2. A backup on the server, for quick restores after a bad update.
3. A backup somewhere else entirely: cloud storage you control.

The off-site copy is the one that matters when things go really wrong. A hacked server, a failed disk or a cancelled hosting account takes the local backups with it.

Good off-site destinations:

- **S3-compatible object storage:** Amazon S3, Backblaze B2, Wasabi or Cloudflare R2. Cheap per gigabyte, reliable, and you can turn on versioning or object lock so even a compromised site can’t delete old backups.
- **Dropbox:** easy if you already use it.
- **FTP/FTPS to another server:** fine if it is genuinely somewhere else. Use FTPS, not plain FTP, so credentials aren’t sent in the clear.

[Off-site Backups](https://togglework.app/features/agency/offsite-backups/) sends each backup to one of these after it runs, and adds weekly or monthly backups of themes, plugins and uploads.

[![Off-site Backups settings screen in the Toggleworks WordPress plugin, showing Destination, Endpoint, Region, Bucket](https://togglework.app/wp-content/themes/toggleworks-site/assets/img/parts/agency-offsite-backups.webp?v=1795524108)](https://togglework.app/features/agency/offsite-backups/)

Off-site Backups: S3-compatible storage, Dropbox or FTP/FTPS.

Give the backup credentials **write-only access to one bucket or folder** if your provider allows it. Then a hacked site can add backups but can’t read or delete the old ones.

## Test a restore before you need it

Restores fail for boring reasons: the archive is incomplete, the file is too big to upload, the credentials expired months ago. Find out now, not during an outage:

1. Create a staging copy of the site ([Staging Site](https://togglework.app/features/agency/staging/) does this in a subfolder).
2. Download a backup from your off-site storage, not the server.
3. Restore it on the staging copy.
4. Log in, open a few pages and, on a shop, the most recent orders.

Do this when you first set up backups and then every few months. Put it in your calendar.

## Restoring after a hack

Restoring a backup after a hack is the fastest way back, with two cautions. First, pick a backup from before the infection; a file scan of the restored site ([Malware & File Scanner](https://togglework.app/features/security/malware-scanner/)) will tell you if it is clean. Second, a restore doesn’t close the hole that let the attacker in. Update everything, change every admin password and your database password, and work through our [security checklist](https://togglework.app/guides/wordpress-security-checklist/).

## A setup that works for most sites

- Daily database backups on the server, keeping the last 7.
- Each one copied to S3-compatible storage, with versioning on.
- Weekly file backups to the same place.
- A manual backup before every major update.
- A test restore every quarter.

Written by the Toggleworks team, who build and support a WordPress plugin used for exactly these jobs. We keep this guide plugin-neutral: every step works with any tool, or none.

## Doing this with Toggleworks

Every step above that needs a plugin is a part of Toggleworks. Each one is off until you switch it on, and all of them come in every plan.

- [Database Backups](https://togglework.app/features/core/backups/) — TW-COR-02 · Back up the database on demand or on a schedule, download copies, and restore one in a click — handy before updates or big… · 3 settings
- [Off-site Backups](https://togglework.app/features/agency/offsite-backups/) — TW-AGY-06 · Send backups off the server — Amazon S3, Backblaze B2, Wasabi, Cloudflare R2, Dropbox or FTP — and add weekly backups of themes… · 17 settings
- [Staging Site](https://togglework.app/features/agency/staging/) — TW-AGY-10 · Create a private copy of this site in /staging to test updates and changes safely, then push the database back to live — or throw… · 1 setting
- [Malware & File Scanner](https://togglework.app/features/security/malware-scanner/) — TW-SEC-12 · Check WordPress core and plugin files against official checksums, find PHP files hidden in uploads, and search code for known… · 2 settings

## Questions

**Aren’t my host’s backups enough?**

They are a good first layer, and often the fastest way to restore. But they live with the same company, sometimes on the same infrastructure, and some hosts keep them for only a few days. If the account is suspended, hacked or closed, you lose access to them. Keep at least one copy that you control, somewhere else.

**How long should I keep backups?**

Long enough to go back to before a problem you didn’t notice straight away. Hacks and data mistakes are often found weeks later. A common pattern is daily copies for two weeks plus weekly copies for two or three months.

**Should I back up before every update?**

Before big ones, yes: a WordPress major version, WooCommerce, your theme or a page builder. Even better, try those updates on a staging copy first.

**Can a backup bring back malware?**

Yes, if the backup was taken after the infection. Scan files before you restore, and when cleaning up a hack, restore from a date before the earliest sign of trouble.

## More guides

- The WordPress security checklist, in the order that matters5 min read
- How to speed up a WordPress site, in the right order5 min read
- The technical WordPress SEO checklist4 min read
- WordPress not sending email? Here’s the fix4 min read

## Switch off the plugin pile.

All 188 parts, one license, updates and support. 14-day refund.

[Choose a plan](https://togglework.app/pricing/#plans) [Try the live demo](https://togglework.app/demo/)

---

Source: https://togglework.app/guides/wordpress-backups/
