There are things that might happen to any webmaster. Situations like hacking of a site, problems with a webhost or transferring the site to a different webhost might occur and you have to be prepared. In this post I’m going to show you some steps on how to backup and restore your WordPress site.
Backup Of Your WordPress Site
Regarding the backup of your site you have to complete two steps. First one is downloading entire wp/content folder from your site. This will include downloading every post, plugin, image (with the right locations of them) and theme that you installed on your site.
To do this you need a FTP software. A tool that I recommend is free software called FileZilla. Log in to your site by using this software (type your domain name without prefix http://, username, password, port), find the wp/content folder on your site and simple download it on your computer. This can take some time depending on the how much content you created on your site. Another way to access wp/content folder is by logging into cpanel of the site and than downloading the folder from there.
The second step will include downloading the WP database of your site with ‘WP-DB-Backup‘ plugin that you need to install on your site first. After you’ve installed this plugin you need to go to backup section under the ‘tools’ section in your WP dashboard. One option is to back up now and another is to automate and schedule this back up. This file will be much smaller than wp/content. Now you have all that you need to restore your site wp/content and WP database of the site.
Restoring Your WordPress Site
When your site isn’t working properly or when it’s hacked than it has to be restored. As long as you have WP database and wp/content folder backup it should be an easy thing to do.
Again the first thing you need to do is to connect to your site using FileZilla and locate corrupted wp/content folder. Open that folder and delete every directory under it. After that open wp/content folder (backup version) and upload every directory to wp/content folder on your site.
In order to restore your WP database you need to login to cPanel of your site and go to phpMyAdmin.
Locate WP database. Click on import and upload WP database (backup version). And that’s it! Now you should be able to access your restored site.
Thank you for reading this post. Please leave your comment and share your way to backup and restore a site.