Part 3: Do the work · Chapter 9
How to Set Up Off-Site WordPress Backups
A step-by-step guide to off-site WordPress backups for client sites: why a copy on the same server doesn't count, how to choose between Amazon S3, Cloudflare R2, Backblaze B2, Google Drive and Dropbox, how to create a scoped key, and how to set retention and test a restore.
By Mike Valera · Last updated
Most WordPress sites have a backup of some kind. Plenty of those backups sit on the same server as the site, sometimes in a folder next to it. That copy helps when an update goes wrong. It doesn't help when the server fails, the hosting account is closed, or someone breaks in and deletes everything they can reach.
An off-site backup is a copy stored somewhere else, in an account you control. This guide covers how to set one up for client sites: where to store it, how to lock down access, how long to keep copies, and how to prove a restore works.
The short answer
To set up off-site WordPress backups:
- Back up the database and
wp-content(themes, plugins, uploads) on a schedule. - Store the copies outside the hosting account, in object storage or a cloud drive.
- Use a key that can only reach the backup bucket, never your account's main login or root key.
- Keep a set number of copies, more for stores than for brochure sites.
- Make sure the copies are encrypted, and decide who holds the key.
- Test a restore to a staging site regularly.
The rest of this guide explains each step.
Why a backup on the same server doesn't count
A backup stored on the server shares every risk the site has:
- Hardware or host failure. If the disk, server or data center has a problem, the site and its backup go together.
- Account problems. A missed hosting invoice, a suspended account or a client who moves hosts without telling you can take both with it.
- Attackers. Someone who gets into the site can usually reach files next to it, and deleting backups is a common step before or after an attack.
- The backup itself is a target. A full backup holds the whole database. A backup file the web server can serve is a data leak waiting to happen.
Keep a server copy for quick restores if you like, but don't count it as your backup.
The 3-2-1 idea in plain terms
The 3-2-1 rule is an old storage habit that still holds up:
- 3 copies of the data: the live site plus two backups.
- 2 different kinds of storage, so one problem doesn't hit both.
- 1 copy off-site, away from the server and the hosting account.
For a WordPress site, that can be the live site, a copy in object storage in your own account, and a second destination or a copy the client owns. The point is copies that don't share a single point of failure.
Step 1: Choose a destination
Most agencies pick between object storage (Amazon S3, Cloudflare R2, Backblaze B2 and other S3-compatible services) and a cloud drive (Google Drive, Dropbox). Object storage is built for this job; cloud drives are fine at small scale and when you already pay for the space.
Here's how they compare on what matters for backups, from each provider's official pricing and documentation pages, as of November 2026. Prices change, so check the provider's page before you commit.
| Amazon S3 | Cloudflare R2 | Backblaze B2 | Google Drive | Dropbox | |
|---|---|---|---|---|---|
| Cost model | Per GB stored per month, plus requests and downloads | $0.015 per GB-month (Standard), plus requests | From $6.95 per TB per month | Your Google account's storage | Your Dropbox plan's storage |
| Free allowance | First 100 GB a month of downloads to the internet, across AWS | 10 GB-month of storage and a monthly allowance of requests | First 10 GB of storage | 15 GB per account, shared with Gmail and Photos | 2 GB on the free Basic plan |
| Download (egress) fees | Charged beyond the free 100 GB | None | Free up to 3x the data you store each month, then $0.01 per GB | No separate fee | No separate fee |
| Scoped keys | IAM user or role with a policy for one bucket | API token with object read and write on chosen buckets | Application key limited to one bucket, a prefix and an expiry | App access by sign-in (OAuth) | App access by sign-in (OAuth) |
| Locking copies | Object Lock (needs versioning) | Bucket locks by prefix | Object Lock, also on existing buckets | Not designed for this | Not designed for this |
| Practical limits | Cheaper storage classes have minimum storage periods (30 to 180 days), and many charge to retrieve | Infrequent Access has a 30-day minimum and a retrieval fee | No minimum storage period | Files up to 5 TB; Workspace users can upload 750 GB a day | Deleted files and versions kept 30 days to a year, by plan |
What the table doesn't show:
- Egress matters when you restore often. Storage is cheap everywhere above; download fees are what surprise people, usually in a bad week with several restores.
- Avoid archive storage classes for working backups. S3's Glacier classes and other cold tiers cost less to store, but they bill a minimum storage period, can charge to retrieve, and some need a restore request before you can download. That suits a yearly archive, not last night's backup.
- Cloud drives share space with everything else. A Google account's 15 GB covers Gmail and Photos as well as Drive, and a growing store can fill a personal plan quickly.
- Think about who owns the account. If a client may one day take their site elsewhere, keeping their backups in a bucket they own saves an awkward handover.
Step 2: Create a key that can only reach the backups
The credentials your backup tool holds are the weakest point of an off-site backup. If someone steals a site's backup key and that key can delete the bucket, the off-site copy is gone too. So give the backup tool a key that does one job.
- Create one bucket for backups (or one per client) and nothing else in it.
- Never use the account's main credentials. AWS recommends protecting root user credentials and granting only the permissions a task needs. Backblaze recommends standard application keys over the master key for third-party integrations.
- Limit the key to that bucket. On S3, create an IAM user with a policy that allows listing, reading, writing and deleting objects in the backup bucket only. On Cloudflare R2, create an API token with Object Read & Write and pick the bucket. On Backblaze B2, create an application key restricted to the bucket, and optionally to a file name prefix and an expiry date.
- For Google Drive and Dropbox, you connect by signing in, and the app asks for permissions. Prefer tools that ask for access to their own folder only, not your whole drive.
- Write down where each key is used, and replace it when someone with access leaves.
A key that can delete objects can still delete your backups. Your retention needs that, which is why object locking (below) exists.
Step 3: Decide how long to keep copies
Retention is the number of backups you keep before the oldest is deleted. Too few and a problem nobody noticed for a week (a hacked site, a broken import) is already in every copy. Too many and storage grows without end.
| Site type | Backup frequency | Copies to keep |
|---|---|---|
| Brochure site that rarely changes | Weekly | 4 to 8 (one to two months) |
| Site with forms, comments or a blog | Daily | 14 to 30 |
| WooCommerce store or membership site | Daily, plus right before updates | 30, and a monthly copy kept longer if the client needs it |
These are starting points. Adjust for how long a problem could go unnoticed and any record-keeping rules the client follows, and write the policy into the care plan.
Locking copies against deletion
S3, R2 and B2 can each lock objects so they can't be deleted or overwritten for a set time, even with a valid key. That protects your backups from a stolen key or a mistake.
- Amazon S3 Object Lock needs versioning on the bucket and has two modes: governance, where users with special permission can still remove a lock, and compliance, where nobody can, including the root user.
- Cloudflare R2 bucket locks apply a retention rule to a prefix, for a set time, until a date, or indefinitely.
- Backblaze B2 Object Lock has governance and compliance modes, and can be turned on for existing buckets. Once on, it can't be turned off.
Set locks with care. Your backup tool can't delete a locked object early either, so its cleanup fails until the lock ends, and you pay to store everything locked. Start with a lock period close to your retention, and try governance mode before compliance mode.
Step 4: Encrypt the backups
A backup holds everything in the database, so treat it like the database. There are two layers:
- Encryption at rest by the provider. Amazon S3 encrypts every new object by default (since January 2023). Cloudflare R2 encrypts all objects and their metadata at rest. On Backblaze B2, turn on server-side encryption for the bucket, and set it as the bucket default so new uploads are covered.
- Encryption before upload. The backup is encrypted on the server before it leaves, so the provider only holds unreadable data, even if the bucket is exposed. Lose the key and the backups can't be restored, so know who holds it.
Also make sure any copy left on the server can't be downloaded from the web.
Step 5: Pick a schedule
How often to back up depends on how much work you'd lose:
- Daily for anything that changes: stores, membership sites, sites with forms, comments or regular posts.
- Weekly for brochure sites that rarely change.
- Right before every update, whatever the schedule. A backup from last night misses everything since. Our guide to updating plugins safely covers this.
- At a quiet hour in the site's own time zone, so the backup doesn't compete with traffic.
Large sites take longer and use more storage. A tool that only uploads files that changed since the last backup keeps daily off-site copies of a big media library practical.
Step 6: Test a restore
A backup you've never restored is a guess. Restore tests catch what only shows up when you need the backup: a missing table, a skipped folder, a key nobody can find, a restore that takes hours on a slow host.
Once a month, on a rotating set of sites:
- Restore a recent backup to a staging site, not the live one.
- Load the home page and a few key pages, and log into wp-admin.
- Check recent content is there: the latest post, order or form entry from before the backup.
- Check the media library shows images, not broken links.
- Time it, so you know how long a real restore will take and can tell the client.
- Write down the result, and fix anything that failed before you need it.
Restoring to the live site is a last resort, and on a store it can lose orders placed since the backup. Take a fresh backup of the current state first, even if it's broken, so you can go back if the restore makes things worse.
Off-site backup checklist
- Every site backs up its database and
wp-contenton a schedule. - At least one copy is stored outside the hosting account.
- Backup storage uses a key limited to the backup bucket, not the account's main login.
- Retention is set per site type and written into the care plan.
- Object locking is considered for stores and sites with sensitive data.
- Backups are encrypted at rest, and you know who holds any encryption key.
- Stores back up daily and right before every update.
- Failed backups alert someone who acts on them.
- A restore is tested on a staging site every month, and the result recorded.
Backups are one part of a wider routine. For the rest, from uptime checks to yearly renewals, see our WordPress maintenance checklist, and for running it across many sites, how to manage multiple WordPress sites.
FAQ
What is an off-site WordPress backup?
A copy of the site's database and files stored somewhere other than the server and hosting account the site runs on, such as an S3 bucket or a cloud drive, so a problem with the host doesn't take the backup with it.
Is my host's backup enough?
It's a useful extra copy, but it usually lives with the same company and account as the site. If the account is suspended, closed or compromised, you may lose access to both. Keep at least one copy in an account you control.
Should the client own the backup storage?
It's worth offering. Backups in a bucket in the client's own account stay with them if they leave (see how to offboard a client), and a key limited to that bucket keeps your access to just what you need.