What a WordPress backup must contain
A WordPress site is two things: files and a database. A backup that holds only one of them is not a backup of the site.
- The database. Posts, pages, settings, users, orders, form entries. Everything a person typed into WordPress.
- wp-content. Uploads (images and documents), plugins, themes, and the must-use plugins in
wp-content/mu-plugins. - wp-config.php. The database name, the keys and salts, and any constants the site relies on. It holds the database password, so store backups somewhere safe.
- Server rules.
.htaccesson Apache and LiteSpeed, or the site’s nginx rules if you manage them: redirects, caching and security rules live here. - WordPress core. It can be downloaded again from WordPress.org, but a backup that includes it restores in one step.
Three layers, not one
| Layer | What it protects against | Weak spots |
|---|---|---|
| The host’s backups | A server failure, a bad update, a deleted page | Often stored with the same company; retention set by the host; restoring one site may need a ticket |
| A backup plugin or service, to storage you control | The host losing data, a closed hosting account, a dispute | Can fail quietly; large uploads folders can time out on shared hosting; storage credentials expire |
| A restore point before each change | A plugin or theme update that breaks the site | Covers only the part that changed, for a short time; it is not a backup of the site |
The first two are your backups. The third is a quick way back from a bad update, and a good update tool makes one every time. Keep all three.
The 3-2-1 idea, for WordPress
An old rule for backups is three copies, on two kinds of storage, with one away from the original. For a client’s WordPress site that becomes:
- The live site.
- The host’s daily backups.
- A copy in storage you control, such as a cloud storage bucket in the agency’s account, not on the same server.
If the hosting account is suspended, the host has an outage, or a client leaves on bad terms, the third copy is the one you will be glad of.
How often, and for how long
| Kind of site | How often | Keep for |
|---|---|---|
| Brochure site that changes rarely | Daily | 30 days or more |
| Lead or booking site | Daily, and before every change | 30 to 90 days |
| Blog or news site with daily posts | Daily | 30 to 90 days |
| WooCommerce shop or membership site | Database hourly or continuously; files daily | 30 to 90 days |
These are starting points to adapt, not rules. The test is simple: if the site broke right now, how much work would be lost, and how far back might you need to go?
Retention matters more than people think. A hacked site is often found weeks after the break-in. If you keep seven days of backups, every copy you have may already contain the malware.
Who owns the backups
Write this down for every client:
- Where they are stored, and in whose account.
- Who can reach them. Limit it to the people who need to restore.
- What the client gets when they leave. A recent full backup, handed over on request, is fair and avoids disputes.
- Encryption. A backup holds the database password and often customers’ details. Store it encrypted, or in storage with strict access.
Test the restore
A backup you have never restored is a hope, not a plan. Once a quarter, pick a site and restore it somewhere safe:
- Create an empty test site, on a subdomain or a staging slot, where search engines cannot index it.
- Restore the files and the database from the backup.
- If the address differs, update it in the database.
- Load the home page, a few inner pages, the login, a form and, on a shop, the cart.
- Write down how long it took and anything that did not work.
From the command line, the core of a manual backup and restore looks like this:
# Back up
wp db export backup-2026-12-01.sql
tar -czf wp-content-2026-12-01.tar.gz wp-content wp-config.php .htaccess
# Restore on the test copy
wp db import backup-2026-12-01.sql
wp search-replace 'https://harbourbakery.example' 'https://staging.harbourbakery.example' --skip-columns=guid
The site address here is an example. --skip-columns=guid leaves the posts’ permanent IDs alone, as WordPress recommends.
Restoring a shop
A full restore of a WooCommerce shop puts the database back to the moment of the backup, and every order since is lost. Before restoring a live shop:
- Ask whether a full restore is needed, or whether only the files (a plugin, a theme) need to go back.
- If the database must go back, restore it to a copy first, and note the orders, customers and stock changes since.
- Put the shop in maintenance mode during the restore, so no new orders arrive in between.
Take an extra backup before risky work
Scheduled backups cover ordinary days. Some work deserves its own copy, taken just before you start and kept for at least a month:
- a new major version of WordPress, WooCommerce or the page builder;
- switching or heavily changing the theme;
- moving the site to a newer PHP version;
- a migration to a new host or domain;
- bulk changes to content, such as an import or a search and replace across the database;
- cleaning up after a hack, so you can compare before and after.
Note the backup’s date and where it is stored in the job’s notes. If the work goes wrong a week later, you will want to find the copy from just before it, not search through thirty nightly ones.
How backups fail
- Stored on the same server. The server fails, and the backups go with it.
- Uploads left out because the folder was too big for the plugin to finish.
- Time limits on shared hosting stop the backup halfway, every night, without an error anyone sees.
- The storage connection expired. A cloud token or a license lapsed, and the plugin stopped sending copies months ago.
- Nobody reads the failure emails.
- Retention too short to reach back before a hack.
- The backup contains the malware. Restoring an infected copy restores the problem. Scan the restored copy, and see how to remove malware from WordPress.
What to tell the client
Clients assume their site is backed up. Tell them, in the monthly report, who backs it up, how often and how long copies are kept. Only state a count of backups you can verify from the host or the backup tool. “Daily backups by your hosting provider” is honest; “30 of 30 backups completed” is only honest if someone checked.
If the site has no off-site copy, say so and offer one. For a choice of tools, read the best WordPress backup plugins.
How Keptstone handles backups
Keptstone does not run backups. It records who backs up each site and how often, from the agency or from the host it detects (for hosts that back up every site daily on all their plans), and every monthly report says so plainly: “Daily backups by” the host or the agency, with a number of days only when that count is verified from the host or a backup plugin’s log. Before each plugin or theme update, Keptstone’s safe updates zip the plugin or theme folder as a restore point, kept for 14 days, and roll back to it if a page breaks; WordPress core updates get no restore point, which is one more reason to keep real backups. Its security settings, which can keep migration plugins switched off, leave backup plugins alone so a site’s backups never stop quietly. Care is $2 a site a month and Care + Protect + Speed is $4. See pricing.
Questions
How often should I back up a WordPress site?
Daily for most sites. A shop or membership site changes all day, so back up its database more often, hourly or continuously if your tool allows it. Also take a backup before any big change, such as a major update or a theme switch.
Are my host's backups enough?
They are a good first layer, but they usually live with the same company and sometimes on the same server as the site. Add a copy in storage you control, and test that you can restore from both.
What files do I need to back up in WordPress?
The database, the whole wp-content folder (uploads, plugins, themes, must-use plugins), wp-config.php and the server rules file, such as .htaccess. WordPress core can be downloaded again, but including it makes restores simpler.
How long should I keep WordPress backups?
At least 30 days, and longer for sites that change little. Hacks are often found weeks after they start, and you need a clean copy from before the break-in, not just yesterday's.