What a WordPress backup must include
A WordPress site is split between files on the server and content in a MySQL or MariaDB database. Back up one without the other and you cannot rebuild the site.
| Part | What is in it | Back up |
|---|---|---|
| Database | Pages, posts, settings, users, form entries, orders | Daily, more often for stores |
| wp-content/uploads | Images, PDFs and other media | Daily or whenever it changes |
| wp-content/themes and plugins | Design, extensions, custom code | Before every update |
| wp-config.php and .htaccess | Credentials, constants, redirects | After every change |
wp-admin and wp-includes can always be recreated from the official download, so they are optional in a backup. Including them does no harm.
Three ways to back up WordPress
1. A backup plugin
The simplest option for most small businesses. The plugin builds an archive on a schedule and uploads it to external storage.
- UpdraftPlus: Very widely used. The free version covers scheduling and uploads to services such as Google Drive, Dropbox or S3-compatible storage; Premium adds more destinations and incremental backups.
- BackWPup: Flexible schedules and many storage targets, with a free version.
- Duplicator: Strongest for migrations; it packages an archive plus an installer script.
- Jetpack VaultPress Backup: A paid Automattic service with real-time backups stored away from your server.
Feature splits between free and paid tiers change from time to time, so confirm them on the vendor's site before you choose.
2. Your host's backups
Many hosts snapshot web space and databases automatically. Find out how long snapshots are kept, whether you can restore a specific day yourself and whether restores cost extra. Treat host backups as a second line of defense, not the only one.
3. WP-CLI and a script
With SSH access, two commands produce a complete backup, ready for a cron job:
cd /path/to/wordpress
wp db export ~/backup/db-$(date +%F).sql
tar czf ~/backup/files-$(date +%F).tar.gz --exclude=wp-content/cache .
A tool such as rclone or restic then ships the archives to external storage. restic encrypts the data and stores only what changed, which keeps storage costs down.
Where to keep your backups
The 3-2-1 rule still works: three copies, on two kinds of storage, one of them somewhere else. For a WordPress site that means:
- The live site is copy one.
- The host's snapshot is copy two.
- An archive with a different provider, such as cloud object storage, is copy three.
Never store backups only in your web space, and never in a publicly reachable folder under wp-content. A database dump contains user data and password hashes. If the site handles personal data of EU residents, pick a storage provider that offers a data processing agreement.
A backup you have never restored is an assumption. At least once a quarter, restore one to a test environment and check that pages, images and forms work.
Retention: how many versions to keep
One copy is not enough. If malware or a broken edit goes unnoticed for two weeks, every recent backup contains it too. A workable schedule for a small site:
- Daily backups, kept for 14 days
- Weekly backups, kept for 8 weeks
- Monthly backups, kept for 6 to 12 months
Most backup plugins, and restic with its forget policies, can prune older versions on rules like these automatically.
Special cases: stores, membership sites, large media libraries
A WooCommerce store creates new orders all day. With a nightly backup, a restore can lose up to a day of orders. Back up the database several times a day, or use a service with real-time backups. And never restore an old backup over a live store without first exporting the orders placed since that backup was taken.
Sites with many gigabytes of images and video run into hosting limits and timeouts with plugin backups. Incremental backups that transfer only changed files help, as does a server-side script. You can also back up large media on a slower schedule than the database.
Restoring WordPress from a backup
- Copy the files into the web root, or extract the archive there.
- Import the database:
wp db import db-2026-11-30.sql - Check the database credentials in wp-config.php if the name or user changed.
- If the domain changed:
wp search-replace 'https://old.com' 'https://new.com' --skip-columns=guid - Flush rewrite rules and caches:
wp rewrite flushandwp cache flush
With a plugin, restoring usually happens in its own screen. If WordPress no longer loads at all, install a fresh copy, add the plugin and restore on top of it.
Common mistakes
- Backing up the database but not the uploads, or the other way around.
- Leaving archives on the same server they are meant to protect.
- Skipping a backup right before a major update. See WordPress updates for a safe routine.
- Ignoring the plugin's error emails. A failed upload otherwise surfaces only when you need the backup.
- Using a backup to move hosts without fixing URLs. The full process is in WordPress migration.
How eCloud Systems can help
Ongoing maintenance with configured and regularly tested backups is available on request for a monthly fee. If we build a new site for you with our WordPress package, you receive every login and can set up backups yourself or with us. Ask through the contact form.
Frequently asked questions
How often should I back up WordPress?
It depends on how often the site changes. A business site with occasional edits is usually fine with a daily database backup and a weekly full backup. A store with ongoing orders needs database backups several times a day.
Is my host's backup enough?
It is a useful second layer, but host backups are often kept only for a few days, stored with the same provider and not always restorable on your own. A copy with a different provider still works when the hosting account itself is the problem.
What is the best WordPress backup plugin?
UpdraftPlus, BackWPup, Duplicator and Jetpack VaultPress Backup are all widely used and do the core job. What matters is off-site storage, a schedule and a tested restore, not the brand.