A WordPress backup has two parts, and you need both: the files in your WordPress folder, and an export of the database. Downloading the folder alone does not save your posts and comments, because they live in a separate database. WordPress’s own handbook says to back up weekly on a small site, daily on a busy one, and always before an upgrade or a move.
Checked 29 November 2026: this guide follows the WordPress Advanced Administration Handbook pages on backups, files and databases. The main backups page shows “Last updated October 28, 2026”. Your host’s control panel may label things differently.
What a complete backup contains
| Part | What it holds | Where it lives | What you save |
|---|---|---|---|
| Files | WordPress core, plugins, themes, uploaded images, wp-config.php, .htaccess | The WordPress folder on your web server | A copy of the folder, usually zipped |
| Database | Posts, pages, comments, settings, links | A separate MySQL or MariaDB database | An export file such as .sql, .gz or .bz2 |
The handbook is direct about the trap: backing up the files does not back up the database. You cannot get the database by downloading the WordPress directory, because it sits outside it. An exported database file is only a file until you import it back, so restoring is a separate step.
Which files matter most
You do not need to treat every file equally. The handbook says the wp-content folder holds your own content, such as edited themes, new plugins and uploaded files, and that you should pay particular attention to it and to wp-config.php, which holds your database connection details. The remaining files are mostly WordPress core, which you can replace from a fresh download of the WordPress zip.
Back up the whole directory anyway if you can, including your .htaccess file. The shortcut is useful when space is tight, not when you are in a hurry to finish.
How often and how many copies
The handbook gives these rules of thumb:
- Small sites with fewer posts: once a week.
- High-activity sites with many posts: daily.
- Before any upgrade or move to a new location: always.
- How many to keep: at least three to five recent backups.
- Where: in different locations, for example one on your hosting server, one in cloud storage and one on your own computer.
Here is an illustrative example of what that adds up to. The numbers are made up to show the arithmetic; measure your own site.
| Item | Size |
|---|---|
| Files (wp-content, config, the rest) | 2.4 GB |
| Database export | 0.1 GB |
| One backup set | 2.5 GB |
| Five sets in one place | 12.5 GB |
| Three places | 37.5 GB in total |
Five sets of 2.5 GB come to 12.5 GB in each location. If your cloud copy is on a free Google account, that would use most of the 15 GB it shares with Gmail and Photos, as our guide to Google storage full explains. If the total looks large, a weekly schedule with five sets covers more than a month for the same space a daily schedule would use in five days.
Back up the database
The handbook describes several ways. Choose the one your host supports.
phpMyAdmin (quick method)
- Log in to phpMyAdmin through your hosting control panel.
- Select your WordPress database in the left column.
- Open the Export tab.
- Leave Quick selected and click Go.
- Save the downloaded file to your computer.
The handbook notes that the quick method suits a database backed up without compression, and that to restore it the new database should have no tables in it. For more control, choose Custom, select SQL as the format, and use the compression option for a large database. It also suggests adding the DROP TABLE statement so the file can overwrite an existing database.
cPanel. Use the option to download a MySQL database backup and click the database name. The handbook gives one warning worth remembering: do not generate a full cPanel backup for this purpose, because full backups are for archival only and cannot be restored through cPanel. A downloaded .gz file does not need unzipping to restore.
Command line. The handbook says phpMyAdmin cannot handle large databases, so use mysqldump instead, optionally piped through gzip for a faster compressed file than bzip2.
Plugins. Several plugins take scheduled database backups. The handbook points to the WordPress Plugin Directory for them.
Back up the files
You have three routes, all from the handbook:
- Your host’s backup software. Most hosts offer a tool, so ask what yours provides.
- Synchronise with an FTP program. Tools such as WinSCP can keep a mirror copy of your site on your computer. Set the direction to copy from the host to your machine.
- Copy by FTP or the command line. Download the folder, then zip it so you can keep several versions.
Most hosts also back up the whole server. The handbook’s view is that this is not a reason to skip your own copy: requesting a restore from the host takes time, and a speedy recovery is critical. Our hosting comparison is a place to start if your current host’s backup options are thin.
The order that keeps the backup consistent
The handbook recommends treating the files and database as one backup set, made around the same time:
- Back up: database first, then files. You can store the database export in the same folder or zip as the file backup.
- Restore: files first, then import the database.
- After a move: if your database name, user or password changed, update
wp-config.phpto match.
Check that automatic backups work
If a plugin or your host runs backups for you, the handbook still recommends taking a manual backup now and then, to guarantee that the automatic process is working. It does not describe a test restore. Our suggestion, not the handbook’s, is to restore a copy to a spare site or a local setup once, so you find a missing file or a corrupt export while nothing depends on it. Our guide to moving WordPress to a new host walks through a restore-like process, and backups that restore explains why testing matters.
Questions
Does downloading my WordPress folder back up my posts?
No. Posts and comments live in the database, which is stored outside the WordPress directory. You need a separate database export.
How often should I back up a WordPress site?
The handbook says weekly for smaller sites with fewer posts and daily for high-activity sites, and always before an upgrade or a move.
How many backups should I keep?
At least three to five recent ones, in different places such as your host, cloud storage and your own computer.
Which should I restore first, files or database?
Files first, then import the database.
Do I need a backup if my host already makes one?
The handbook recommends having your own. Hosts often back up the whole server, but a request to restore takes time.
Sources
Official pages read on 29 November 2026:





