If disaster strikes and your WordPress site is destroyed you need to restore your site from a backup. This article shows you how to do just that.
Assumption: You have a good backup which contains both your database and all files related to your WordPress site.
Our recommended backup solution is described here. If you use a different backup method your files might be organized slightly differently.
To restore your site follow these steps:
Unzip your backup file.
Find the xxxxx.sql file and move it to another directory.
On your hosting account remove any existing files and folders from your WordPress site folder. This is typically everything in the public_html, www or html folder if you only have one website on your hosting account.
Do not remove the folder itself, rather delete everything inside the folder.
Using your FTP client transfer the remaining files from the zip file to your WordPress site folder on your hosting account.
Your site should now be in the same state as when you made the backup.
Note: If you are restoring your WordPress site to a different hosting account there are a couple of additional steps:
- You need to create a database and a database user.
- You need to modify the database settings in wp-config.php to match your new setup.
- If you have any plugins which hold the file path in their configuration you will need to verify those settings. For example BackWPup stores information about backup paths.
Then you can find your next article below.
If not you should take a look at the Table Of Contents.
Please leave them below. Thanks!