What a WordPress backup must contain

A WordPress site lives in two places, and a backup needs both (WordPress’s handbook on backups):

Part Where Why it matters
The database MySQL or MariaDB, named in wp-config.php Every post, page, setting, user, order and form entry
wp-content/uploads The site’s folder Every image and file the client uploaded
wp-content/plugins, themes, mu-plugins The site’s folder Custom and premium code you cannot download again
wp-config.php The site’s root (or one level up) Database details, keys, settings
.htaccess (Apache, LiteSpeed) The site’s root Redirects, rules, security settings

WordPress core files (wp-admin, wp-includes) can be downloaded again, so they are optional. Cache folders (wp-content/cache) can be left out to keep backups smaller.

A backup missing either half is not a backup. Files without the database restore an empty site; a database without uploads restores pages with broken images.

Option 1: the host’s backups

Most managed WordPress hosts back up every site daily. Before you rely on them, open the hosting panel and check five things:

  1. How often they run (daily, or more often on higher plans).
  2. How long they are kept: 7, 14 and 30 days are common.
  3. What they include: files and database, or only one.
  4. Where they are stored: on the same server, in the same data center, or somewhere else.
  5. How you restore: the whole site only, or files and database separately, and whether you can download a copy.

Write the answers down for each client. Host backups are the fastest to restore from, usually a button in the panel, and they cost nothing extra on many plans. Their weakness is that they live with the host: if the account is suspended, closed or compromised, they can go with it.

Option 2: a backup plugin

A backup plugin runs inside WordPress and sends copies to storage you choose. Popular ones on WordPress.org include UpdraftPlus, BackWPup and WPvivid; compare what each free version stores, where, and how it restores. A side-by-side: backup plugins compared.

To set one up:

  1. Install it from Plugins, Add New, and activate it.
  2. Choose remote storage you or the client own: a cloud drive, an object storage bucket, or an SFTP server. Never keep the only copy on the same server.
  3. Set the schedule. Database daily (every few hours for a shop), files daily or weekly.
  4. Set how many to keep. At least two weeks of daily copies, plus a monthly one if storage allows.
  5. Run the first backup by hand and check the files arrived at the remote storage, with a sensible size.
  6. Turn on email notices for failed backups, and make sure they go to someone who reads them.

To undo, deactivate and delete the plugin; the copies on your remote storage stay until you delete them.

Watch the cost on large sites: a full backup zips the whole uploads folder, which uses CPU and disk for minutes on a site with many gigabytes of images. Run it at night and prefer plugins that send only changed files after the first run.

Option 3: by hand with WP-CLI and SFTP

Useful before a risky change, or when nothing else is set up. From the site’s folder on the server:

wp db export ~/backups/example-$(date +%F).sql --add-drop-table
tar -czf ~/backups/example-files-$(date +%F).tar.gz wp-content wp-config.php .htaccess

The first line writes the database to a file (wp db export); the second packs the files. Then download both to your computer with SFTP or scp, and delete them from the server, or at least keep them outside the public web folder: a .sql file in the site’s root can be downloaded by anyone who guesses its name.

Without WP-CLI, export the database from phpMyAdmin in the hosting panel (Export, Quick, SQL) and download wp-content with an SFTP client.

Which to use for client sites

Use two layers for every site you look after, and keep one copy away from the host:

Site Suggested backups
Brochure site, edited monthly Host daily, plus a weekly off-site copy from a plugin
Blog or news site, edited daily Host daily, plus daily off-site
WooCommerce shop or membership site Host daily, plus the database off-site every few hours, plus a backup before every update
A site you are about to change heavily A fresh manual backup right before the change

The longer reasoning, with retention and storage choices, is in a WordPress backup strategy for agencies.

Test the restore

A backup you have never restored is a hope. Once a quarter, pick a site and restore its latest backup somewhere harmless: a local copy, a spare hosting account, or the host’s staging. Check that pages, images, logins and, on a shop, products and orders are there. Note how long it took. That number is what you tell a client who asks how fast you can get them back.

What can go wrong

  • The backups stopped weeks ago. Storage filled up, an access token expired, or the backup timed out on a growing site. Check the last successful backup date every month.
  • The only copy is on the same server. A server failure, an account suspension or an attacker with access takes the site and its backups at once.
  • The backup contains the problem. Malware can sit on a site for weeks before anyone notices, so the newest backups are infected too. Keep older copies, and see what to do when a site has been hacked.
  • It is half a backup. Some plugin settings back up only the database, or only files. Check both are in the copy.
  • It holds personal data. Customer details, orders and form entries are in the database. Store backups somewhere access is limited, and encrypt them if the plugin can.

What to tell the client

Clients want four answers, so put them in the care plan and the report: who backs up the site, how often, how long each copy is kept, and how quickly you can restore it. “Daily by the host, kept 30 days, plus a weekly copy in our own storage; we can restore within the hour” is a sentence that keeps clients calm. Then, once a year, tell them you tested a restore.

How Keptstone handles it

Keptstone does not run backups. It records who backs each site up and how often, from the site’s Backups card, and fills it in by itself from the hosting company the connector detects when that host is known to back up every site daily on all its plans. The monthly report shows it in words, for example daily backups by the named host, and adds a count of days only when that count is verified from the host or a backup plugin’s log, never a number typed in. The Site care page inside the client’s WordPress shows the same line.

What Keptstone keeps before each plugin or theme update is a restore point: a zip of that one plugin’s or theme’s folder, kept 14 days, so a safe update can be rolled back. It is not a site backup and does not cover the database. Keptstone’s optional setting that keeps migration plugins switched off leaves plugins that are mainly backups alone, so it never quietly stops a site’s backups. Backup recording is in both plans: Care ($2 a site a month) and Care + Protect + Speed ($4).

Questions

How do I back up my WordPress site for free?

Check what your host already does: many back up every site daily at no extra cost. Add a free backup plugin from WordPress.org that sends a copy to storage you own, such as a cloud drive, or export the database with WP-CLI and download wp-content over SFTP.

How often should a WordPress site be backed up?

As often as you can afford to lose work. A brochure site that changes monthly is fine with a daily backup. A shop or membership site takes orders and sign-ups all day, so back up its database every few hours, and always take a fresh backup before an update or a big change.

Are host backups enough?

They are a good first layer, but they usually live with the same company, sometimes on the same infrastructure, and are kept for a limited number of days. For a client site, keep a second copy somewhere the host does not control.

Do I need to back up WordPress core files?

Not strictly: core can be downloaded again from WordPress.org. What cannot be replaced is the database, the uploads folder, wp-config.php and any custom or premium plugins and themes. Backing up the whole site folder is simpler and does no harm.