To back up a WordPress site properly, you need two things: a copy of its files and an export of its database. WordPress.org's own docs say you need both to restore a typical install. Copy only one and you can't rebuild the site.
The second trap is quieter. A backup that lives on the same server as the site, and that nobody has ever restored, is a hope, not a plan.
Below are three ways to make a backup (by hand, with WP-CLI and with a plugin), then where to keep the copies and how to restore one step by step. It pairs with my WordPress security checklist, because backups are what save you when every other layer fails.
Every step, command and price here comes from official WordPress, WP-CLI, MySQL, CISA and vendor pages, as of 20 October 2026. I haven't run a plugin test for this post. Some links are affiliate links; they don't change your price.

What does a complete WordPress backup include?
A complete backup is a matched pair: a copy of your WordPress files and an export of your database, taken at the same time.
They live in different places. Your files sit in the WordPress folder on the web server. Your database sits in a separate MySQL or MariaDB system. WordPress.org's backup docs are blunt about it: downloading your WordPress directory usually does not back up the database, because the database lives outside it.
| Part | Where it lives | What's inside | Can you re-download it? |
|---|---|---|---|
| wp-content folder | Web server, in your WordPress folder | Themes, plugins, uploads (all your media) | No, it's yours |
| wp-config.php | WordPress root, sometimes one folder above | Database name, user, password, keys, custom settings | No, it's yours |
| .htaccess | WordPress root (Apache and LiteSpeed servers) | Permalinks, redirects, security rules | No, it's yours |
| WordPress core files | wp-admin, wp-includes, root PHP files | The WordPress software itself | Yes, from wordpress.org |
| Database | MySQL or MariaDB server | Posts, pages, comments, users, settings, plugin data | No, it's yours |
The docs single out wp-content and wp-config.php as the files to pay most attention to. Core files can be replaced with a fresh download of the same WordPress version, so they matter least. I'd still include them in a full backup, because a restore is easier when you don't have to match versions by hand.
One more thing the table hides: on a WooCommerce store, orders and customers live in the database. A files-only backup of a shop is a backup of its product photos and nothing else.

How often should you back up WordPress?
Back up as often as you can afford to lose work. That's the real rule. If losing a week of posts would hurt, weekly is too slow.
WordPress.org's suggestion is a starting point: once a week for smaller sites with fewer posts, daily for high-activity sites, and always before an upgrade. CISA adds a useful test from the other direction: make sure you can roll back at least seven days if you need to.
| Site type | How often | Why |
|---|---|---|
| Brochure site that rarely changes | Weekly, plus before every update | Little changes between backups |
| Blog publishing a few times a week | Daily | A week of posts and comments is real work |
| Membership site or forum | Daily at minimum, more if you can | Users create data you can't recreate |
| WooCommerce store | Real-time or several times a day | Every order between backups is at risk |
| Any site, before core, theme or plugin updates | Every time | A broken update is easiest to undo from a backup taken minutes earlier |
How many should you keep? WordPress.org recommends at least three to five recent backups, stored in different places. Older copies matter more than they sound. Malware can sit unnoticed for days, and if every backup you hold is newer than the infection, every backup is infected.
What is the 3-2-1 backup rule (and how does it apply to WordPress)?
The 3-2-1 rule, as CISA puts it: keep 3 copies of important files, on 2 different types of storage media, with 1 copy stored off-site.
For a WordPress site, that translates cleanly:
- Copy one is the live site on your host.
- Copy two is an automatic backup sent to cloud storage such as Google Drive, Dropbox or Amazon S3.
- Copy three is a backup you download to your own computer or an external drive now and then.
The off-site copy is the one people fake. A backup folder inside your hosting account is not off-site. If the account is hacked, suspended or deleted, that folder goes with it. The same goes for a backup plugin that stores archives in wp-content and never sends them anywhere else.
My take: the cloud copy should be automatic and the local copy can be manual. Automation covers the days you forget. The local copy covers the day your cloud account or your host has a bad week.

How to back up a WordPress site manually (phpMyAdmin and SFTP)
A manual backup needs no plugin and works on almost any host. It's the method I'd want every site owner to try once, because it teaches you where everything actually is.
You need your hosting control panel login (for phpMyAdmin) and SFTP details or a file manager. Your database name is in wp-config.php, on the line that defines DB_NAME, if you're not sure which database is yours.
Step 1: Export the database in phpMyAdmin
Do the database first. WordPress.org recommends backing up the database and then the files, so the two stay as close together in time as possible.
- Open phpMyAdmin from your hosting panel and click your WordPress database in the left column.
- Click the Export tab.
- For most sites, Quick export in SQL format is enough. Click Go and save the .sql file.
- For more control, choose Custom: keep all tables selected, keep SQL as the format, and tick "Add DROP TABLE" so the file can overwrite an existing database on restore. Pick zipped or gzipped compression if the database is large.
Here's the catch with phpMyAdmin: WordPress.org notes it cannot handle large databases. If the export times out or the file comes out suspiciously small, switch to WP-CLI or mysqldump (next section).
Step 2: Download your files over SFTP or the file manager
Connect with an SFTP client such as FileZilla or WinSCP, using the SFTP credentials from your host. Download the whole WordPress folder, usually public_html, to a dated folder on your computer.
Make sure hidden files are showing, or you'll miss .htaccess. Check whether wp-config.php sits one level above public_html. WordPress allows that, and a backup that skips it means re-creating your database settings by hand later.
No SFTP? Most hosting file managers can compress the WordPress folder into a .zip that you then download. Delete that .zip from the server afterwards. A backup archive left in public_html can be downloaded by anyone who guesses its URL, and it contains your database password.
Step 3: Bundle, label and move the copy off the server
Put the .sql export and the files archive in one folder named with the site and the date, for example example-com-2026-10-20. WordPress.org calls this a backup set: files and database taken around the same time, stored together.
Then move it. One copy to cloud storage, one to your computer or an external drive. That's your 3-2-1.
How to back up WordPress with WP-CLI over SSH
If your host gives you SSH access, WP-CLI is the fastest manual method and the easiest to automate. Hostinger, for example, includes SSH and WP-CLI on its web hosting plans.
The wp db export command runs mysqldump for you, using the database name, user and password already in wp-config.php. It also accepts any mysqldump flag. The one I'd always add is --single-transaction. MySQL's manual says it dumps a consistent snapshot of InnoDB tables without blocking the site while the dump runs.
Notice the backups folder sits outside public_html, so neither file is reachable from the web. If your wp-config.php lives one level above public_html, copy it into the backups folder too, because the tar command above won't catch it. Download both to your computer with SFTP, or push them to cloud storage, before you call the job done.
No WP-CLI? The same database export works with mysqldump directly. Leave the password off the command line and let it prompt you. MySQL's manual calls a password typed into the command insecure.
Replace DB_HOST, DB_USER and DB_NAME with the values from your wp-config.php.
How to back up WordPress with a plugin
A plugin is the right default for most sites, because it schedules backups and sends them off the server without you remembering to. The manual methods above are what you use before a risky change or when a plugin can't run.
These are the backup plugins with official listings on WordPress.org. Install counts and prices are as of 20 October 2026.
| Plugin | Free version | Where backups go | Paid plans (as listed) | Best for |
|---|---|---|---|---|
| UpdraftPlus | Yes, scheduled backups to cloud | Dropbox, Google Drive, S3, FTP, email (free); more on Premium | Premium from $70 a year for 2 sites | Most blogs and small business sites |
| Jetpack VaultPress Backup | No, needs a paid Jetpack plan | Jetpack Cloud | $4.95 a month first year, then $9.95 a month, billed yearly | WooCommerce stores that need real-time backups |
| BlogVault | 7-day free trial | BlogVault's own servers | Personal $99 per site per year list, $49.50 with the current discount | Agencies and owners who want restores handled off-site |
| Duplicator | Yes, manual backups and migration | Your server, Duplicator Cloud | Pro Basic normally $79 for 2 sites | Moving sites and one-off full backups |
| All-in-One WP Migration | Yes, export and import | Download to your computer | Paid extensions (price not stated) | Migrations; free restore is limited by your host's upload size |
UpdraftPlus is the one I'd start most people on. Its free version, with 4,000,000+ active installs on WordPress.org, schedules backups as often as every 2 hours and sends them to Dropbox, Google Drive, Amazon S3 and others. Premium adds automatic backups before updates, incremental backups and more storage destinations.
Jetpack VaultPress Backup makes sense for stores. It backs up in real time as orders arrive and restores even when your site is down, but there's no free tier, and Jetpack's own FAQ says it doesn't support multisite.
BlogVault runs backups and restores on its own servers rather than yours, which keeps the load off cheap hosting. The trade-off is that you can't keep backups in your own S3 bucket; BlogVault manages the storage.
Duplicator is a migration tool first. The free Lite version makes full backups and one-click restores, but scheduled backups and Dropbox, Google Drive or S3 storage are Pro features.
One warning for stores. If you run WooCommerce and your backups run once a day, the orders placed between backups are what you'd lose. Only a real-time service, such as Jetpack VaultPress Backup or BlogVault's WooCommerce plan, closes that gap.
How to set up UpdraftPlus
- Install UpdraftPlus from Plugins, then Add New Plugin, and activate it.
- Go to Settings, then UpdraftPlus Backups, and open the Settings tab.
- Set a schedule for files and a separate one for the database. Daily for both is the safe default, because new posts usually bring new images into wp-content/uploads.
- Choose how many backups to retain. Keep at least three to five, as WordPress.org recommends.
- Pick a remote storage destination, such as Google Drive or Dropbox, and authorise it. This is the step that makes the backup off-site.
- Save, then click Backup Now and confirm a finished backup shows up in your cloud storage, not just in the plugin's list.
Are your host's backups enough?
Host backups are a good second layer and a bad only layer.
They're useful. Hostinger's docs, for example, say its automatic backups cover site files and databases, run weekly by default and daily on plans that include daily backups, and let you restore files only, the database only, or both from hPanel. Daily backups on the Business/Unlimited tier and above are kept for the last 7 days.
The limits are the reason you still need your own copy:
- They live with your host. If your account is suspended, hacked or closed, your backups can go with it. That breaks the off-site part of 3-2-1.
- Retention is short. Seven daily backups won't help with malware that arrived three weeks ago.
- Restores overwrite everything. Hostinger warns that restoring overwrites your current files and database and cannot be undone, so download the current state first.
- Some content isn't included. Hostinger's website backups exclude email mailboxes, for example.
WordPress.org makes the same point: most hosts back up the entire server, but asking for a copy takes time, and you should know how to back up and restore your own site.
What I'd actually do: keep the host backups switched on, add a plugin that sends copies to cloud storage, and download a full copy yourself every month or so. If you're still choosing a host, my roundup of affordable WordPress hosts and my Hostinger review compare what each plan includes.
How to restore a WordPress site from a backup
Restoring is the same job in reverse, and the order matters. WordPress.org's docs say to restore the files first, then import the database. This section is the short version; my full guide to restoring WordPress from a backup covers each plugin's restore screen, host restores and the errors that show up afterwards.
If you use a plugin, its restore button handles most of this. The manual steps below are what that button does, and what you'll need when the dashboard won't load at all. If the site is a blank white screen before you can restore, work through fixing the WordPress White Screen of Death first so you can reach admin or SFTP safely.

Step 1: Save the broken state before you touch it
Download the current files and export the current database, even if the site is broken. A restore overwrites everything, and you may need something from today's version, such as a post published since the last backup.
Step 2: Restore the files
Upload your backed-up wp-content folder, wp-config.php and .htaccess over SFTP, replacing what's on the server. If the core files are damaged too, upload the full backup or a fresh copy of the same WordPress version first.
Step 3: Import the database
In phpMyAdmin, select the database, open the Import tab, choose your .sql file and click Go. If your export didn't include DROP TABLE statements, empty the database first; WordPress.org notes a quick export restores cleanly only into a database with no tables.
From SSH, either command works. The wp db import command uses the credentials in wp-config.php but won't create the database for you, so it must already exist.
Step 4: Check wp-config.php matches the database
If you restored to a new host or created a new database, update DB_NAME, DB_USER, DB_PASSWORD and DB_HOST in wp-config.php. An "Error establishing a database connection" message after a restore usually means these four values don't match.
Step 5: Fix the URLs if the domain changed
Restoring to a different domain or a staging subdomain leaves the old address stored all over the database. WP-CLI's search-replace handles WordPress's serialized data safely. Run it with --dry-run first to see what would change.
Step 6: Clear caches and re-save permalinks
Purge your caching plugin, your host's cache and any CDN. Then open Settings, Permalinks and click Save Changes without changing anything, which rewrites the permalink rules. If inner pages return 404 errors after a restore, this is the first fix to try.
Step 7: Test the site like a visitor
Load the homepage, a post, a page and an image. Log in to wp-admin and submit a form.
On a store, add a product to the cart. If all of that works, the restore worked.
How do you test a WordPress backup before you need it?
You test a backup by restoring it somewhere that isn't your live site. Opening the zip and seeing files in it proves nothing about the database.
CISA recommends scheduled recovery tests, and WordPress.org suggests checking automatic backups with a manual one now and then to make sure the process works. A simple routine:
- Every few months, restore your latest backup to a staging site, a subdomain or a local copy on your computer. Many hosts, Hostinger included, offer a staging tool for this, and my guide on how to create a staging site for WordPress covers the plugin and manual routes too.
- Run the URL fix from Step 5 if the address is different.
- Click through the Step 7 checks.
- Note how long it took. That's your real recovery time, and it's worth knowing before the day a client is waiting.
If the test fails, you've found the problem on a calm Tuesday instead of during an outage. That alone makes it the most valuable habit in your maintenance routine.
The same routine fits next to the rest of your upkeep. My WordPress performance checklist covers the other half: keeping a healthy site fast.
Common WordPress backup mistakes
- Backing up files and forgetting the database, or the other way round. One without the other won't restore the site.
- Keeping backups only on the same server. One hack or suspended account and they're gone.
- Leaving .zip or .sql backups in public_html, where they can be downloaded.
- Never restoring a backup. Until you have, you don't know it works.
- Keeping only one or two copies. Problems found late need older restore points.
- Relying on cPanel's "full backup" for quick recovery. WordPress.org notes that full cPanel backups are for archiving and can't be restored through cPanel itself.
- Skipping the backup before an update because "it's only a minor release".
- Running two backup plugins on the same schedule. It doubles the load on your server; send one plugin's backups to a second destination instead.
Frequently asked questions
If you do one thing today, install a backup plugin, point it at cloud storage and run your first backup. If you do two, restore that backup to a staging site this month, because a backup you've restored is the only kind you can trust.
If your current host makes backups hard, start with a plan that includes daily backups and staging. Hostinger's Business tier includes daily backups, and its hPanel has SSH, WP-CLI and phpMyAdmin built in.


