Short answer: what to include in a WordPress backup is two things, and the database is the one people forget. You need the database (posts, pages, comments, users, settings and most Site Editor changes) and the files: the wp-content folder (themes, plugins, uploads), wp-config.php and .htaccess. Copying the site's folder captures only the files. The database lives in a separate system, so it needs its own export. A backup missing either half cannot rebuild your site.
Written against WordPress 7.1.2. Last verified: September 27, 2026.
Why this matters before anything else
A backup you have never looked inside is a hope, not a backup. The painful moment is not making it, it is restoring it during an emergency and discovering the posts are there but the images are gone, or the images are there but every post is missing.
This article is about composition: what has to be inside the backup. It is not a restore guide. Whatever method you use, treat any change to your live site as risky until you have a backup that contains every part listed below, stored somewhere other than the site's own server. Once you know what should be in it, verifying your WordPress backup before you need it is the next step.
The two halves, in the official documentation's words
The Backups page in the WordPress Advanced Administration Handbook (last updated June 4, 2026, read September 27, 2026) says a WordPress backup has two parts: the database and the files. It describes the files as "WordPress core, themes, plugins, uploads, wp-config.php, .htaccess, etc." and the database as the place holding "every post, every comment and every link you have on your blog."
The companion page on backing up the database makes the split explicit from the other side. Its steps "back up the WordPress database (posts, pages, comments, settings, etc.) but they do not back up your WordPress files (themes, plugins, uploads, wp-config.php, etc.)."
So neither half covers the other. That is the whole reason "I copied the folder" is not a backup.
Why copying the folder misses the database
Your WordPress folder on the server contains PHP files, images and configuration. Your written content does not live there. It lives in a database, usually MySQL or MariaDB, which your host runs as a separate service. WordPress connects to it using the details stored in wp-config.php.
That means:
- Downloading the entire site folder by FTP or a file manager gives you files only. Every post, page and setting stays behind in the database.
- Exporting the database from phpMyAdmin gives you content only. The images, themes and plugins stay behind on the server. The handbook's database page makes the same point: after a database export you have not yet backed up the files and folders, such as images, even though "all your posts and comments are now safe."
Part 1: the database, and what is really in it
The database holds more than posts. Based on the handbook's description, plus the Theme Handbook note below, expect it to contain:
- Content: posts, pages, comments and revisions.
- People: user accounts and their roles.
- Settings: your site title, reading and permalink settings, and the settings of most plugins.
- Site Editor changes. This is the one people do not expect. The Global Settings and Styles page in the WordPress Theme Handbook (last updated December 14, 2023, read September 27, 2026) says that when users customize their site under Appearance > Editor, "the JSON data is saved in their site's database." Style changes made in the Site Editor are not written back into your theme's files.
That last point changes what "back up the theme" means. If you customized a block theme in the Site Editor, a copy of the theme folder does not hold those customizations. The database does. This is also why theme updates and Site Editor changes interact the way they do, covered in our guide to updating a WordPress theme without losing customization.
Export the whole database, not one table
The handbook's database page notes that WordPress tables start with wp_ "or whatever 'table_prefix' you specified in your 'wp-config.php' file." Two practical consequences:
- If your prefix is not
wp_, do not go looking forwp_tables and assume the backup is empty or wrong. Check$table_prefixinwp-config.phpfirst. - If other applications share the same database, the WordPress tables are the ones carrying your prefix. Make sure every one of them is in the export.
The database name itself is set in wp-config.php as DB_NAME. If your hosting account has several databases, that line tells you which one belongs to this site.
Part 2: the files, and which ones matter most
Not every file carries the same weight. The handbook's page on backing up files says: "Normally, there would be no need to copy the WordPress core files, as you can replace them from a fresh download of the WordPress zip file." It names the files you cannot replace: "your wp-config.php file, which contains your settings and your wp-content directory (plus its contents) which contains all your theme and plugin files."
| File or folder | What it holds | Can you get it back without a backup? |
|---|---|---|
wp-content/uploads |
Every image and file you uploaded, organized by year and month | No. It exists only on your server and in your backups. |
wp-content/themes |
Your theme files, including any child theme | Only if the theme is unmodified and still downloadable |
wp-content/plugins |
Plugin code | Usually, if each plugin is still available, but versions and paid plugins can be hard to recover |
wp-content/mu-plugins (if present) |
"Must-use" plugins, often added by a developer or host | Rarely. Easy to forget because they do not appear in the normal plugin list. |
wp-config.php |
Database connection details, table prefix and other site settings | No. Without it, the restored files cannot find the database. |
.htaccess (on servers that use it) |
Permalink rules and any redirects or access rules | Partly. WordPress can regenerate its own rules, but custom rules added by you or a developer are lost. |
wp-admin, wp-includes, root PHP files |
WordPress core | Yes, from a fresh download of the same version |
Including core files in the backup does no harm and makes a restore simpler. It just is not the part you cannot replace.
The parts people miss
These are the gaps that turn a "full backup" into a partial one:
- The database export itself. Worth repeating because it is the most common gap. If your backup is a single zip of the site folder, check whether a
.sqlfile (or.sql.gz) is inside it. - Hidden files.
.htaccessstarts with a dot, and many FTP programs and file managers hide dot files by default. The handbook's files page tells you to back up "all of your files in your WordPress directory (including subdirectories) and your.htaccessfile." Turn on "show hidden files" before you copy. - Uploaded fonts. Fonts you install through Appearance > Fonts are stored as files on your site. The WordPress Developer Blog's post on font collections (April 1, 2024) says installed fonts "are stored locally in the user's
/wp-content/uploads/fontsfolder." A backup of the wholeuploadsfolder covers them, but a backup of only the year-and-month media folders does not. Our guide to managing WordPress fonts without a plugin explains where they appear in the admin. - Anything outside the WordPress folder. Some sites keep files next to or above the WordPress folder: a
wp-config.phpmoved one level up, a folder of downloads, or other applications. A backup that starts at the WordPress folder misses them. - Must-use plugins. As in the table: they live in
wp-content/mu-plugins, and people who back up "the plugins folder" skip them.
A five-minute composition check
You do not need to restore a backup to check what is in it. Open the archive (or the folder your backup tool created) and confirm:
- A database file is present, usually ending in
.sql,.sql.gzor.zip, and it is not a few kilobytes (a near-empty file usually means the export failed). -
wp-content/uploadsis present and contains your year folders, plusfontsif you installed fonts. -
wp-content/themescontains your active theme, and its parent if you use a child theme. -
wp-content/pluginsis present, andwp-content/mu-pluginstoo if your site has one. -
wp-config.phpis present. -
.htaccessis present if your live site has one. - The backup date is the date you expect.
This check tells you the backup is complete. It does not prove it restores. That is a separate test, and the only one that truly counts.
Store it where the site is not
The Backups handbook page recommends keeping at least three to five recent WordPress backups, with copies stored in different locations such as your hosting server, cloud storage and your own computer. A backup stored only on the same server as the site fails in exactly the situation where you need it: when that server or account has a problem.
One more reason to be careful where backups sit: a complete backup contains wp-config.php, which holds your database password. Never leave a backup archive or database export inside your site's public web folder, where someone who guessed the file name could download it.
If the worst has already happened, our guide to restoring a WordPress backup while the site is down picks up from here.
FAQ
Is copying the WordPress folder a full backup?
No. The folder holds your files but not your database, which is where posts, pages, users and settings live. You need a separate database export as well.
Do I need to back up WordPress core files?
The WordPress handbook says there is normally no need, because core files can be replaced from a fresh download. Including them is harmless and can make a restore simpler, but wp-content, wp-config.php, .htaccess and the database are the parts you cannot replace.
Are my Site Editor changes in the theme folder?
Not the style changes. The WordPress Theme Handbook says customizations made under Appearance > Editor are saved as JSON data in the site's database. Back up the database to keep them.
Does a database backup include my images?
No. The database stores content and settings. Images and other uploads are files in wp-content/uploads and must be backed up with the files.
How many backup copies should I keep?
The WordPress Backups handbook page recommends at least three to five recent backups, stored in different locations.
