Hi Everyone! Welcome back to WordPress Wednesday!
Last time we talked about why backing up your site is important and the ways to go about it. This week we are going to go over the ways to restore content to your WordPress site. You may need to do this in case your site gets compromised to the point where it’s unrecoverable or if you are transferring from one hosting site to another. Regardless, these steps outlined below will help in your situation.
***Important note: If your website gets hacked, you want to avoid using the same database to restore as it can still be infected. You will need to delete the existing one and recreate it, then import the last good database backup in order to restore it.
Through a hosting site
Like I mentioned last time, most hosting sites offer to backup and restore your content for you without you doing anything extra. Again, this is usually an extra cost so check with them first to see if this is offered.
With a Plugin
I mentioned UpDraft Plus being a great plugin to use when backing up. Well, it’s also a great plugin to use to restore as well! The only issue is that free version is limited so if you need any extra features you will need to pay for the full version. You can compare the free and paid versions here
Without a Plugin
While backing up your site manually is a pain, restoring your site is a bigger pain. It’s best to do it with a plugin but if you are not able to you can follow these steps
1) Restore your database
If your site wasn’t infected or if you are transferring your WordPress to another hosting site, you can just use the same database and skip this step. Just make sure you reconnect it when setting up your site again. If you have to recreate the database, go into MyPHPAdmin and select import. Upload your SQL file and wait until the import is complete (shouldn’t take long)
2) Install WordPress
Install your WordPress site again (steps here for reference) making sure you connect the proper database and use the same login.
3) Upload your data
If you downloaded all the files from your FTP folder, you just need to re-upload them again, being careful not to overwrite the wp-config file.
4) Save your permalinks
Just as a last step and to prevent anything weird from happening, go to Settings > Permalinks and hit Save on the page twice.
Hooray! You have successfully restored your site. And that’s it for #WordPressWednesday, see you next week!