Back up your website files and database together
Make a useful website backup, store it privately and check what you would need to restore.
Read the guideWeb hosting · Practical guide
Restore a copy in a separate environment and check files, database and application behavior.
Archive placement: February 2025

A restore test answers a simple question: can you rebuild a working website from the backup you actually have? Use an isolated location, restore both files and database, and test real features. Finding a missing database or an old plugin dependency is much easier during a test than during an outage.
Create a separate folder, database and application configuration. Protect the test site from public access. Use test credentials where possible, and disable outgoing mail, payment processing, webhooks and scheduled jobs before starting the restored application.
Do not point a test copy at the live database. A staging site using real production settings can change orders, send messages or run background work even if nobody visits it. Check the configuration before opening the application.
Create a separate document root and a new empty database with a database user authorised for that database. Use a staging hostname or a local test environment. Protect it with authentication or a network restriction; a robots noindex tag alone does not protect private data.
Before starting the restored application, block outbound customer email, payment processing, webhooks and scheduled jobs at the staging environment or application configuration. Disable production API keys and replace them with test credentials. A restored database can still contain active integrations, even if you have not opened the homepage yet.
Write down the staging path, database name and hostname and compare them with production. If they are the same, stop. Do not use a live database as the destination for a practice import.
Work in a separate document root so a mistaken overwrite cannot replace the live site. Keep the saved backup on your computer as well.
Enable Show Hidden Files to check .htaccess. Keep staging email, payments, webhooks and scheduled jobs disabled before opening the restored application. A password-protected page does not stop background integrations from running.
Use new database names for staging. Reusing the live database would turn a recovery test into a change to the production website.
For WordPress this is the staging wp-config.php file. Confirm the database host with the account settings rather than guessing a remote hostname. Do not send the configuration file or database password in an ordinary support message.
The selected database determines where the import goes. Verify that name again immediately before uploading the SQL file.
Do not repeat an uncertain import over populated tables without checking what completed. For a file above the upload limit or a failed large import, ask support for an appropriate restore process instead of splitting the SQL file at arbitrary lines.
A restored WordPress database may still send visitors to the live domain. Use a staging or clone tool supplied with your installer when it can handle the address changes for you.
Do not perform a global text replacement inside an SQL file: WordPress can store serialized settings that such a replacement breaks. Multisite and custom applications need their own documented migration process. Ask for help if you cannot identify the correct tables or URL-change method.
Check the home page, an internal page, login, an uploaded image and a feature that reads from the database. Check application logs for errors. Test the PHP or runtime version as well as the restored files, because missing extensions can break an otherwise complete restore.
Write down what worked, what was missing and how long the restore took. Fix the backup process if the test exposed a gap. Remove the test environment securely when it is no longer needed, while retaining the backup copies required by your recovery plan.
Record the backup used, time to restore, missing steps and whether the result met your recovery goal. After testing, remove or securely retain the staging copy according to your data needs. Keep the backup itself protected. If recovery required files from the running production site, add them to the backup process and repeat the test from the saved material alone.
Sometimes, but file and database versions must be compatible. Plugins and application upgrades can change the database schema. Use a matched recovery set unless you have checked that a partial restore is safe.
No. It proves the archive can be read, not that the database imports or the application starts. A meaningful restore test includes user actions and recent data checks.