WordPress Backup and Restore: A Plan You Can Test
What to back up in WordPress, how often, where to keep copies, and a restore drill with a log to fill in, so you can check that your backup works.
Published 1 December 2026
A full WordPress backup needs your site files and its database, saved at about the same time. Keep recent copies in three places. Choose how often to back up by how much new work you could enter again. Then restore one copy on a separate test site. Until you test it, you do not know if it works.
What goes in each half
- Files: product photos and other uploads, themes, plugins,
wp-config.phpand, on some servers,.htaccess. - Database: pages, posts, products, prices, orders, customer accounts and many plugin settings.
If you download only the files, you do not get your orders. Email inboxes and DNS records may not be in your website backup, so save them separately.
Tools > Export is not a full backup either. It saves content such as posts and pages, not your themes, plugins or picture files.
How often should you back up?
WordPress suggests weekly backups for smaller sites and daily ones for busy sites. Then ask how much new data you could enter again:
- A site that rarely changes: once a week, and before every change.
- A blog or school news site with daily posts: once a day.
- An online store: back up the database at least daily. Do it more often if a day of orders is too much to lose.
- Any site: make a full backup before updates, a move or a large import.
Example with made-up numbers: a shop gets 40 orders spread evenly over 24 hours. It makes a backup at 3 am, and the site breaks at 9 pm. In that 18-hour gap, 40 x 18 / 24 = 30 orders may be missing. With a backup every 6 hours, the longest gap is 6 hours, or about 10 orders: 40 x 6 / 24.
WhatsApp chats and courier bookings may help you rebuild missing orders, but they cannot replace a database backup.
Keep copies in three places
WordPress suggests keeping at least 3 to 5 recent backups, in different places:
- Your hosting account: easy to restore, but you may lose access if the account has a problem.
- Cloud storage: use a private folder and turn on two-step login.
- Your computer or a USB drive: keep the drive locked away when you are not using it.
Load-shedding or an internet cut can leave you with only part of a download. Compare its size with the original and open the zip. Keep one older monthly copy too, in case a hack goes unnoticed for weeks.
A backup can hold customer names, phone numbers, addresses and your database password. Do not share it on WhatsApp or leave it in public_html, where someone may be able to download it.
Give both parts matching names (made-up example):
2026-12-01_0300_example-shop_database.sql
2026-12-01_0300_example-shop_files.zip
Check a free backup plugin before you use it
First, ask your host what it backs up, how often, how long it keeps copies and who can restore them. If you still need a plugin, check its WordPress.org page and ask these questions:
- Does the free version save both files and the database?
- Can it save copies outside your hosting account?
- Can the free version restore them, or only make them?
- Can it work on a schedule and email you if a backup fails?
- How do you restore if you cannot open the dashboard?
You can also make a backup yourself. On a busy store, stop new orders until both parts are saved.
- Find your database name next to
DB_NAMEinwp-config.php. Open that database in phpMyAdmin. - Click Export, choose SQL and click Go. Check that the file has downloaded.
- Use File Manager or SFTP to download the whole WordPress folder, including hidden files. If
wp-config.phpis one folder above, download that too. If you make a zip on the server, delete it from there after you download it.
Practise a restore on a separate site
Ask your host for a staging copy or a separate test site with an empty database. Ask them to block it for everyone else with a password or your IP address. Do not open the test site until step 6. An unfinished copy can change your live store, or email and charge real customers.
Backup first: save anything you need from the test site. Before each step, check that the folder and database are the test ones, not the live ones.
- Restore the files to the test site. WordPress recommends files first, then the database.
- Straight away, put the test database's name, user, password and host in the test site's
wp-config.php. The restored file still has your live database details. Ask your host to check that the block still works, because a restored.htaccessfile can remove a password. - In phpMyAdmin, select the empty test database. Use Import, choose your SQL file and click Go.
- Ask your host or developer to turn off emails, payments, courier bookings and all scheduled tasks on the copy, including cron jobs. If nobody can do this, stop here.
- Ask them to change the old site address with a staging or migration tool, and to check for
WP_HOMEandWP_SITEURLlines inwp-config.php. Do not use normal find and replace on the SQL file, as it can damage some saved settings. - Open the test site. The address bar must stay on the test address. If it goes to your live site, close it and do not log in or place an order.
Then complete this log:
RESTORE DRILL LOG
Date: ____________________
Backup date and time: ____________________
Test address: ____________________
Address bar stays on test site: yes / no
Pages and images open: yes / no
Admin login works: yes / no
Newest order in backup: ____________________
Emails and payments stay off: yes / no
Minutes taken: ____________________
Problem to fix: ____________________
Next drill: ____________________
Do this every three months and after changing your host or backup method. When you finish, delete the test site and its database, because they hold customer details. Check twice that they are not the live ones.
Before you restore your live site
If the site was hacked, do not just use the newest backup. Follow the plan for a hacked site instead.
Backup first: save the current files and database, even if the site is broken. Pause new orders and save every order placed after the backup you plan to use.
Ask your host to help and keep the site closed to visitors. An import can replace newer data, or stop halfway if the old tables are still there. If you can, keep the old database and import the backup into a new, empty one.
Restore the files, then the matching database. Check that wp-config.php has the right database name, user and current password, because the backup may have old ones. Check links, forms and a COD test order, then add the missing orders and check stock.
If you compare WordPress hosting, ask how a restore works before you pay.
Common questions
Can I rely only on my host's backups?
It is safer to keep your own copy too. If there is a problem with your hosting account, you may not be able to reach the backups stored there.
Can I restore only the database?
Sometimes, if your files are fine. But an older database may not match newer plugins, and it can remove recent orders. Save the current site first, then try it on staging.
How can I tell if my backup worked?
A success message is not enough. Restore it on a separate site, then check the pages, pictures, login and latest order.
Sources
- WordPress: Backups
- WordPress: Backing up your database
- WordPress: Migrating WordPress
- WordPress: Tools Export screen
- cPanel: Directory Privacy, which uses .htaccess