A complete backup and restore for WordPress is two parts: the database (posts, comments, users, settings) and the site files (themes, plugins, uploads, wp-config.php). You need both.
The official handbook, last updated 28 October 2026, says to keep at least 3–5 recent copies in different places: on the host, in cloud storage, and a copy you have downloaded.
You will take a manual database export, a manual file copy, a plugin workflow with UpdraftPlus, and a restore test you should run before you ever need one.
⚡ Quick answer
- Best for: every WordPress site owner, especially before updates, migrations or any work you might need to undo.
- Skip it if: you already have an automated off-site backup you have successfully restored in the last month, and you only needed a reminder of the file list.
- Time needed: 45–90 minutes to take a full manual set, or 20–30 minutes to set up a scheduled plugin backup and run a test restore on a copy.
- Our call: automate off-site backups with a plugin, and still practise a restore on a copy. A backup you have never restored is unproven.
💡 On this page
- What does a complete WordPress backup include?
- What you need before you start
- How do you back up the database manually?
- How to back up WordPress files manually
- How to back up and restore with a plugin
- How do you restore a manual backup?
- How to check the backup works, and what breaks
- Frequently Asked Questions
What does a complete WordPress backup include?
The WordPress backup handbook is blunt about a common mix-up: downloading your WordPress directory does not back up the database.
The files live in your site folder on the web server. The database lives in MySQL or MariaDB, usually outside that folder. You back it up by creating an export (a .sql, .gz or .bz2 file).
Store that export with the matching file archive so they stay one “backup set.” Restoring still means importing the SQL into the database, not just unzipping it into wp-content.
| Part | What it holds | How you usually copy it |
|---|---|---|
| Database | Posts, pages, comments, users, settings, plugin data | phpMyAdmin export, host tool, wp db export, or a backup plugin |
| wp-content | Themes, plugins, uploads and most custom files | FTP, SFTP, a file manager, or a plugin archive |
| wp-config.php and .htaccess | Database credentials and rewrite rules | Copy with the files; core PHP can be replaced from a fresh WordPress zip |
WordPress suggests a weekly backup for smaller sites, and a daily backup for high-activity sites. Always take a fresh copy before an upgrade. That pairs with our guide to update WordPress safely with a staging site.
Host-level backups are useful, but they are not a substitute. Official docs note that requesting a copy from the host can take time, and a speedy recovery matters. Keep your own off-site copy.
The catch: one backup on the same server as the site fails when the server fails. Keep copies in at least two places you do not share with the web root.
What you need before you start
- Access: wp-admin, plus either hosting panel access (phpMyAdmin or a file manager) or SFTP.
- Storage: space for at least three backup sets, including one off the server (Drive, Dropbox, S3 or a disk at home).
- A place to test a restore: a staging site, a spare subdomain, or a local WordPress development environment.
- Time: do not start a first backup ten minutes before a major update. Leave room to confirm the files arrived.
If you cannot get into hosting tools, a backup plugin and our file manager plugins roundup will still let you pull files and archives from wp-admin.
This is also the moment to tighten the rest of the site. Backups are how you recover; they do not stop an attack. Use the WordPress security hardening checklist and the WordPress security plugins roundup alongside this workflow.
How do you back up the database manually?
The database backup documentation walks through phpMyAdmin, cPanel and command-line options. phpMyAdmin is the method most hosts still expose.
Export with phpMyAdmin
- Open phpMyAdmin from your host panel (cPanel, Plesk, DirectAdmin and others all link to it).
- Select the WordPress database in the left column. The name is in
wp-config.phpif you are unsure. - Click the Export tab.
- For a typical site, leave Quick selected, format SQL, and click Go. Save the file to your computer.
- For a large database, choose Custom, pick a compression method (gzip or zip), and confirm the tables that use your
$table_prefixare selected.

The Custom export can add DROP TABLE and IF NOT EXISTS statements. Those help when you restore over an existing database, but they also make it easier to wipe tables. Read the options before you tick them.
Other official methods
On cPanel, use Download a MySQL Database Backup and click the database name. You get a .gz file; you can upload the same file later without unzipping it first, per the docs.
If you have SSH and WP-CLI, wp db export writes a dump in one command:
wp db export backup/database.sql
Create the backup folder first, and download that file off the server. Do not leave dumps inside a public web directory.
Common mistake: exporting only a few tables because the list looked long. Miss wp_options or a plugin’s tables and the restored site will look intact until a setting or form is gone.
How to back up WordPress files manually
The file backup documentation says the files you cannot afford to lose are wp-content, wp-config.php and .htaccess. Core files in wp-admin and wp-includes can be replaced from a fresh WordPress zip.
In practice, many people still copy the whole document root. That is fine if you have the space. It just makes the archive larger than it needs to be.
- Connect over SFTP (or your host’s file manager) to the WordPress root, the folder that holds
wp-config.php. - Download
wp-content,wp-config.phpand.htaccess(andindex.phpif you have customised it). - Zip the folder on your computer, and name it with the date and “files” so it matches the database dump from the same session.
- Copy the zip off your working disk to a second location.

Hosts often provide their own backup or sync tool. Use it if it lets you download a copy. WinSCP and similar clients can also keep a local mirror, which the handbook mentions as a way to stay current.
Do the file copy after the database export when you can, so the two halves of the set are close in time. The official recommended backup order is database first, then files.
Do this if uploads are huge: back up uploads on its own schedule, and still include a current database dump with every set. A week-old photo folder plus a fresh database is usually easier than the reverse.
How to back up and restore with a plugin
A plugin is how most sites stay on a schedule. Our roundup of WordPress backup plugins compares the field. Below is the workflow for UpdraftPlus, the most installed option in the directory.
The UpdraftPlus plugin page, checked 24 November 2026, lists version 1.26.16 (updated 18 November 2026), 4+ million active installations, and “tested up to” WordPress 7.2. The free edition backs up, restores and can migrate.

Set up and run a backup
- Install and activate UpdraftPlus from Plugins → Add New.
- Go to Settings → UpdraftPlus Backups.
- On the Settings tab, choose a remote storage target the free edition supports: Dropbox, Google Drive, Amazon S3 (or compatible), Rackspace, FTP, DreamObjects, OpenStack Swift or email.
- Set a schedule (every 2, 4, 8 or 12 hours, daily, weekly, fortnightly or monthly) and how many copies to keep.
- Save, then on the Backup / Restore tab click Backup Now. Leave the database, files and “send to remote storage” options ticked.
When the job finishes, confirm the archives exist in the remote folder, not only in the on-screen log. After a successful upload the plugin may remove local copies, so the remote location can be the only copy.
Restore from the plugin
- On Backup / Restore, find the set under Existing backups and click Restore.
- If the files are only in remote storage, use Rescan remote storage or upload the archives first.
- Select the components to restore: plugins, themes, uploads, others and/or the database.
- Confirm the warning that the restore will replace the selected parts of this site, then run it and wait for “Restore successful”.
To rebuild a dead site, install WordPress and UpdraftPlus on the new home, enter the same storage settings, rescan, and restore. For a domain change, use the free edition’s URL rewrite, or a tool from our migration plugins roundup.
UpdraftPlus Premium adds automatic backups before updates, incremental backups, more storage targets, database encryption, WP-CLI and multisite support. Check the vendor’s current plans if you need those extras; we are not quoting a price here.
Skip the free email storage option as your only target if the site is more than a few megabytes. Mailboxes and attachment limits make a poor archive. Use Drive, S3 or FTP instead.
How do you restore a manual backup?
Official restore order is the reverse of backup: restore the files first, then import the database. If database credentials changed, update wp-config.php to match before you reload the site.
Restore the files
- On the destination, install a clean copy of the same WordPress major version if the core files are missing.
- Upload your copies of
wp-content,wp-config.phpand.htaccessover the top (or extract the full archive into the document root). - Check file permissions so the web server can read the files, and that
uploadsis writable if you need to add media later.
Import the database
In phpMyAdmin, select the empty (or intended) database, open the Import tab, browse to your .sql or compressed dump, keep SQL as the format, and click Go. Wait for the success message.
From the command line, after decompressing a .bz2 or .gz dump, the handbook’s pattern is:
mysql -h HOST -u USER -p DATABASE < blog.bak.sql
Create the database user first on a new host, and put the same password into wp-config.php.
When the URL changes, use a search-and-replace tool or a migration plugin. Avoid a naive find-and-replace inside a SQL file; serialised PHP data in options and widgets is easy to break.
Do this if the site was hacked: restore onto a clean environment, then clean the hacked site before you point the domain back. Restoring onto the same infected server often brings the malware with it.
How to check the backup works, and what breaks
How to check it worked
- Open the database dump and confirm it is not a zero-byte or truncated file. A healthy SQL dump mentions your table prefix near the top.
- Open the file archive and confirm
wp-config.php, the active theme and a known file fromuploadsare present. - For a plugin backup, download one set from remote storage and restore it on a copy of the site, not on production.
- On the restored copy, log in, open a recent post, a form or cart, and a media file from before the backup.

What breaks, and how to undo it
A restore that only included files leaves posts and settings in the old (or empty) database. A restore that only included the database leaves new uploads missing. Always treat the two halves as one set.
A failed in-place restore can leave production half-replaced, which is why you test on a copy. If an in-place restore already failed, put the last known-good set back, then diagnose on staging.
Remote storage that silently stops authenticating is a quiet failure. Once a quarter, log into the storage account and confirm new archives are still arriving.
If you do not want to run this yourself, a maintenance service that includes verified backups is a valid option. Hosting matters too; see how to choose WordPress hosting if restore tools on your plan are weak.
The catch: the only backup that counts is the one you have restored. Schedule a test restore, not only a test backup.
Frequently Asked Questions
Does backing up WordPress files also back up the database?
No. The site files live in your WordPress directory, but the database is stored in MySQL or MariaDB, usually outside that folder. You need a separate export (a .sql or compressed dump) plus the files. Store both together as one backup set, then import the dump when you restore.
How often should I back up a WordPress site?
WordPress suggests a weekly backup for smaller sites and a daily backup for high-activity sites, and a fresh copy before every upgrade. Keep at least three to five recent sets in different places. If you publish or take orders every day, daily off-site backups are the sensible default.
What is the correct order to back up and restore WordPress?
Back up the database first, then the files, and keep them as one set. Restore the files first, then import the database. If credentials changed on the new host, update wp-config.php before you reload the site so WordPress can find the imported database.
How do I restore an UpdraftPlus backup on a new site?
Install WordPress and UpdraftPlus on the new site, enter the same remote storage settings, and use Rescan remote storage (or upload the archives) so the set appears under Existing backups. Click Restore, choose the components, and confirm. For a domain change, rely on the plugin’s search-and-replace, then check permalinks.
Is the free version of UpdraftPlus enough?
For many single sites, yes: the free edition can back up, restore and migrate, and it sends copies to Dropbox, Google Drive, S3-compatible storage, FTP and several other targets. Premium adds pre-update backups, incremental backups, encryption, extra storage targets, WP-CLI and multisite support. Check current vendor pricing if you need those.
Can I rely on my host’s backups alone?
Treat them as a bonus, not the only copy. Official WordPress documentation notes that host backups can take time to retrieve, and a server-level failure can take those copies with it. Keep your own off-site set, and make sure you know how to download the host’s copy before you need it.
What should I copy if I back up WordPress files by hand?
At minimum, copy wp-content, wp-config.php and .htaccess. Those hold themes, plugins, uploads, credentials and rewrite rules. WordPress core folders can be replaced from a fresh zip. Name the archive with the date and keep it with the database dump from the same session.
How do I test that a WordPress backup actually works?
Restore the set onto a staging site, a spare subdomain or a local environment, not onto the live site. Log in, open a recent post, a form or cart, and a media file. If anything is missing, fix the backup job now, while you still have a working production site.
Take a full set (database plus files) off the server, then prove you can restore it on a copy. After that, put the job on a schedule.
Use a plugin if you want that schedule to run without you, and still download a manual set before any risky update.
If a restore ever fails on production, put the last known-good set back first; debug on staging, not on the broken site.
Last updated November 2026.





[…] a support ticket. If you are not sure, take your own backup with a plugin as well. Our guide to taking a full WordPress backup before you update covers both plugin and manual methods, and how to confirm the archive will […]
[…] noticed. Compare the backup date with the oldest suspicious file you find in Step 4. Our guide to restore from a clean WordPress backup covers how to bring that archive back […]