Back up WordPress and check that you can restore it
Make a complete backup of your WordPress site, keep it somewhere safe, and prove it works by restoring a test copy. Do this before any big change, and on a regular schedule.
A backup you've never restored is a hope, not a plan. Testing it once, while the site is working, is what makes it one.
1 Choose how often
Back up before every update, theme change or move, and also on a schedule that matches how much you could bear to lose:
| Site | A sensible schedule |
|---|---|
| Company site that rarely changes | Weekly, and before every change |
| Blog or publication | After each batch of new posts |
| Store taking orders | Daily at least, because every order is new data |
2 Make the backup
Use one of these methods.
WP Toolkit. In cPanel, open WP Toolkit, find your site and open its backups. Create a backup, then download it when it's ready.
cPanel. Open Backup in cPanel. Under Partial Backups, download your Home Directory and the MySQL Database for your site. These you can restore yourself later from the same page. A Full Backup is useful for moving to another host, but you can't restore it yourself from cPanel.
A WordPress backup plugin. Choose one that backs up both the files and the database, and that can send copies to outside storage automatically.
The WordPress Tools → Export file isn't a backup. It holds posts and pages, but not your theme, plugins, settings or images.
3 Check the backup finished
Open the backup's result or log. Look for skipped files or database tables, and check the archive's size looks right for your site: a 20 MB backup of a site with 2 GB of images is missing something.
4 Keep copies somewhere else
Download the backup to storage outside your plan. Keep several, not just the latest: a problem you discover next month may already be in this week's copy.
Treat backups as private. They contain your database password and, for a store, customer details. Never leave them in a public website folder.
Old backups stored on your plan use its storage, so delete them once your outside copy is safe.
5 Test a restore on a separate copy
Restore the backup somewhere that isn't your live site, such as a local WordPress app on your computer. Give the copy its own new database.
Before the copy runs, make sure it can't act like the real site:
- switch payment gateways to test mode, or turn them off;
- stop it sending email to customers;
- turn off anything that connects to outside services, such as stock or delivery systems.
Check the database details in its wp-config.php twice. They must be the test database's, never the live one's.
If the copy runs at a different address, use a migration plugin or WP Toolkit to change the address. A simple find-and-replace in the database file can break WordPress settings.
6 Check the restored site
Open the home page, a deeper page and some images. Sign in to the dashboard, open your newest post, and check your plugins and settings are there. For a store, open a recent order and a product.
Note the date of the newest content you can see. That's how old your backup really is. Write down how long the restore took and anything that was missing, and fix it now, while your live site is still working.
Delete the test copy and its database when you've finished.
If you need to restore the live site
Before restoring over a live site, think about what's changed since the backup. Restoring the database replaces everything in it: orders, sign-ups, comments and edits made after the backup are lost. For a store, put it in maintenance mode first and export recent orders so you can enter them again.
Still stuck? Contact Support with your domain, the backup you're using and what happened. Never send passwords.
Did this solve it?
Thanks for letting us know.
Sorry it didn’t. Ask Spiderz describes the problem with you and hands it to our team if needed, or you can contact Support directly.