Yes. To recover a typical WordPress site, you need both its files and its database, backed up at roughly the same point in time. The files supply things like themes, plugins, and uploaded images. The database holds posts, pages, users, settings, and other records that tell WordPress what to display. You don’t necessarily need two downloads: one backup package can contain both. What matters is what’s inside, not how many files you saved.
What each half of a WordPress backup contains
The files: code, configuration, and media
A full file backup normally includes WordPress core files, the site’s wp-config.php, and wp-content. On a typical installation, wp-content contains themes, plugins, and uploads. Preserve custom code, must-use plugins, and any site-specific server rules too. Some installations put wp-config.php above the web root or store media outside the normal uploads folder, so a download of the public folder isn’t always the whole story.
You can usually replace unmodified WordPress core files from a trusted distribution, and you may be able to reinstall publicly available plugins and themes. But a fresh download won’t bring back your child theme edits or the photo you uploaded three summers ago. An uploads directory is often half photo album, half filing cabinet; neither half is improved by guesswork.
The database: content, accounts, and settings
The database holds post and page content, revisions, comments, users, and site settings. It also stores Media Library records and may contain form entries, shop orders, or page builder layouts, depending on how your plugins store data. A database export is commonly an SQL file, sometimes compressed. Copying the WordPress directory over SFTP does not export the database. The credentials in wp-config.php tell WordPress where to connect; they’re not a copy of what’s there.
Media shows why the halves have to work together. An image file may live in wp-content/uploads, while its attachment record, caption, and file path live in the database. With only the file, you may be able to open the image directly, but WordPress won’t automatically list it in the Media Library. With only the record, the library can remember the image perfectly well while having nothing to display.

How to check whether a backup contains both halves
Start with the backup you’d actually reach for after a failure, not the schedule shown in your dashboard. A job marked “complete” may have completed exactly what it was configured to do: back up only the files or only the database.
- Check the backup scope. In your host’s backup panel or plugin’s backup history, open the job details and look for entries labeled Files, Database, or similar. Labels vary. Some tools produce a single bundle; others produce several parts, all of which you need to keep.
- Identify the file copy. For a plain ZIP or downloaded directory, look for
wp-content, then spot-check for your active theme and a recent upload you recognize. If the site offloads media to external storage, verify separately how those original files are backed up. - Identify the database copy. For a manual backup, look for a separate SQL export or an SQL file inside the archive. If you need to make a fresh export and your host offers phpMyAdmin, select the database named by
DB_NAMEinwp-config.php, then use Export and select SQL as the format. Check that the export includes the tables for your site’s configured prefix, including plugin tables. If multiple sites share that database, don’t assume a whole-database export belongs to just one site. - Match the capture times and store the copies together. Record when each part was captured and keep a protected copy away from the hosting account. For a manual backup, take the two copies close together. If orders or submissions keep arriving, use a backup method that coordinates the two snapshots or arrange a short window when writes are paused.
If your backup is a .wpress archive from All-in-One WP Migration, its contents aren’t visible just by browsing it as a standard ZIP. WPress Extractor can help you inspect a supported archive for the site files and a database dump, often named database.sql. Encrypted, damaged, or unsupported archives may not open. Extraction only gives you files to inspect; it doesn’t import database tables or deploy WordPress. Keep the original archive untouched.
Prove the pair works with a test restore
Restore to a private staging site or a local WordPress environment, not over your live installation. Confirm the test environment has its own database and credentials before importing anything. For a packaged backup, follow the restore workflow for the tool that made it. For separate copies, restore the files to the test site, import the SQL into its empty database, and make sure its wp-config.php points to that database and uses the imported table prefix. If the test address differs, use a WordPress-aware migration tool to update stored URLs safely.
Check three things together: a recent page or post, an image embedded in it, and a feature that relies on plugin data, such as a saved form or a recent order. Note the newest record the restored site actually contains. Before trying actions that send mail, charge cards, or call external services, make sure the test environment is isolated from those services. A homepage that loads is a useful first check, not a verdict.
Troubleshooting when the halves don’t line up
- WordPress shows the installer or an unexpectedly empty site. Stop before running setup. Check whether the SQL import finished, whether
wp-config.phppoints to the intended database, and whether its table prefix matches the restored tables. A successful connection to the wrong database is still the wrong database. - Posts are there, but images are broken. Pick one broken image and compare its URL with the restored uploads path. A URL pointing at the old domain suggests a migration issue; a correct URL with no corresponding file suggests a missing upload or an external media copy that wasn’t restored.
- Recent uploads exist, but recent pages or orders are missing. Compare the database export time with the timestamps of the missing records. A newer file copy can’t make an older database current. Look for a newer database snapshot from your host and test it separately before replacing anything.
- The SQL import stopped partway through. Save the first error. Upload limits, timeouts, or database compatibility issues call for different fixes. Ask the host what import method it supports, then retry in a fresh test database rather than importing repeatedly over partially restored tables.
If one half is genuinely missing, ask the host whether it keeps separate file and database snapshots before overwriting the live site. A file-only copy can salvage custom code and media, but it won’t recreate posts or accounts. A database-only copy can salvage content and settings, but it won’t recreate missing originals or custom code. Keep the best surviving copy of each, even if the dates don’t match. Once you have a pair that passes a test restore, label it with both capture times so you know exactly what recovery point you can count on.