Skip to content
All articles

WordPress backups: prove you can restore

External hard drive connected to a laptop
Photo by ANNIE HATUANH on Unsplash

Create and prove a WordPress backup in 3 stages: export its database and copy its files, restore that matching set separately, then verify the customer tasks the site must support. A backup notification proves that a job reported completion. It does not prove that the stored material can recreate a usable website.

For a Zambian business owner, the useful question is what would survive a failed change or a lost hosting account. Identify the pages, enquiries and operational records the site depends on, then make the recovery evidence match those needs. The local demonstration below records an actual synthetic restore alongside a reusable worksheet. Your own site still needs a rehearsal against its actual database, components and customer tasks.

What must a recoverable WordPress backup contain?

WordPress separates the database from the files used to run and present the site. The official backup guide says a typical full restoration needs both. The database contains content and application records, while the files include components such as themes, plugins, uploads and configuration. A downloaded website directory is therefore not normally a complete database backup.

Record the database export and the relevant file copy as a matching recovery set. WordPress recommends treating them together and describes a typical backup order of database first, followed by files. The point is consistency: a collection of copies made at unrelated stages may not describe the same state of the application. Note what was happening on the live site when the set was created.

The separate database-backup guide emphasises that database procedures do not back up WordPress files. A database export can be stored alongside the file copy, but recovery still requires importing it into a database system. A readable export filename is useful evidence of a file’s existence, not proof that its contents are complete or restorable.

For an authorised operator with shell access, WP-CLI installed and access to the site’s configured database, the official wp db export reference provides a concrete database route. Run the following only after replacing both paths with the verified installation and a private destination outside the public website directory:

wp --path=/verified/wordpress/path db export /private/backup-destination/site-database.sql

The command uses the database settings in wp-config.php and runs mysqldump. With no table-selection option, it exports all tables in that database; on a shared database, establish that scope first. Do not add passwords to the command. Check the reported export and retrieve the SQL file through the authorised secure file-transfer route.

Next, follow WordPress’s file-backup guidance: use the host’s file manager or an authorised file-transfer client to copy the WordPress directory, including uploads, themes, plugins and configuration. Confirm hidden files and any content directory placed elsewhere. Retain the SQL export and file copy under one set reference, in private storage independent of the live directory. This creates the two components; it does not yet prove restoration.

Use this original set manifest before attempting a rehearsal. It records evidence without exposing credentials.

Manifest entry What to record Question it answers
Set identity Readable reference and creation observation Which copies belong together?
Database Export reference and intended source Are content and application records included?
Files Archive reference and stated scope Are uploads, components and configuration covered?
Exclusions External services or omitted records What will not be recreated?
Access Custodian and restricted retrieval route Can recovery proceed if the usual operator is unavailable?
Recovery target Separate test environment Where can restoration be tried safely?
Rehearsal result Tasks checked and unresolved defects What has actually been demonstrated?

How do you rehearse restoration without putting the live site at risk?

Agree a separate recovery target before importing anything. Do not use the public production database as an experiment. The person carrying out the rehearsal should identify the target clearly and confirm that its records may be replaced. This guide deliberately supplies no destructive database command; a restoration procedure must be appropriate to the actual hosting environment.

Control external effects on the restored copy. A test site can contain settings that send email, notify staff or contact payment and booking services. Identify those dependencies and configure a safe rehearsal before exercising customer journeys. Keep the fact that an integration was disabled visible in the result, because a deliberately bypassed function has not been proven end to end.

Follow the tool-specific recovery procedure with the matching set. WordPress describes a typical restoration order of files first and database afterwards. That is a general sequence, not a substitute for the particular tool’s instructions or evidence that an archive from one hosting platform can be imported through another platform’s interface. Record which procedure was used and where it differed from the expected environment.

Then exercise the customer task you identified at the start. For an enquiry site, establish whether the form can accept a controlled test and whether its intended handling can be demonstrated safely. For a transactional site, use the documented test environment and record which states were checked. Do not create real financial activity merely to make the rehearsal appear complete.

An observed local recovery exercise

On 24 October 2026, this drafting exercise created and restored set IR032-LOCAL-A-20261023T225719Z using WordPress 7.1.3, PHP 8.5.4 and the official SQLite integration feature plugin. The fixture contained only synthetic records. Its full WordPress directory and a consistent SQLite database copy formed the matching set; the database was outside the served directory.

Before backup, a synthetic enquiry was submitted through the WordPress form and an uploaded text file recorded point A. Afterwards, another enquiry and changed file/database markers created point B. The files were extracted to a separate directory, the saved database copied to a separate database path, and the restored application started on a loopback-only address.

Check Observed result
Selected recovery point Point-A database marker and uploaded file returned
Enquiry already in the backup The point-A enquiry remained present
Deliberately newer changes Point-B enquiry and changed markers were absent
Restored enquiry journey Page and form returned successful responses; a new synthetic enquiry was stored
External-effect controls Test mail was short-circuited; a test WordPress HTTP request returned the fixture’s blocked-request error

Cron and automatic updates were disabled, and the local server was stopped afterwards. The result demonstrates recovery-point loss and a working synthetic form on this fixture. It does not test production MySQL/MariaDB, the mysqldump command above, live email delivery, payment integrations or another site’s plugin compatibility. Archive and database hashes, configuration scope and observed records are retained with the editorial evidence. No recovery-time guarantee follows from the exercise.

Finally, decide how records newer than the chosen backup would be handled during a real incident. Restoring an older copy may recover the website while omitting recent enquiries or orders. Keep that consequence visible in the recovery plan. For related website context, see Spout’s WordPress page, or get started with a redacted set manifest and the recovery question you need to scope.

By Spout Team. AI-assisted drafting by Codex, grounded in the linked primary documentation.

Make your next move.

A website, a store or a clearer digital plan. Let’s start with your business.

Start your brief