Manually Restoring Your Site Through The WordPress Plugin
If you are ever unable to restore your website automatically through the plugin, you can request a zip file through your CodeGuard dashboard by following these steps:
Once you upload the database backup file your site should look as it did the day it was backed up. If it does not, contact CodeGuard Support.
- Select the WordPress site that you need to get a zip file for.
- Then select the date you need and click "Request Zip", once you click this button do not leave the page, the backup will appear shortly. And you will see a note appear over the calendar like this:
- Next, click "Download Backup" and a backup will start in your browser for your zip file.
- For this next step, you can do this a number of ways, typically we use FileZilla, but there are other options like CyberDuck or you can do this in the terminal according to this support article. You will need the FTP username or password for your website to connect. You can contact your host to get this information.
- Make sure to unzip your backup before connecting with FTP. Once you are able to log in, navigate to where your website files are. You should see three folders of files in your unzipped backup. They are what you will be replacing.
- Go into your site's public_html folder and drag the three folders into your server to replace the folders that are active in your website. You will be prompted about overwriting the files that are already there, select 'Overwrite" and "Apply to current queue only". It may take some time to complete replacing the files.
- In the meantime, you will need to grab the database file from your backup in the wp-content folder under codeguard_backup is the name of your website and the file in that folder "mysqldump.sql" is the backup of your database that can be used to restore your database.
- To upload this file you would need to access PhpMyAdmin. In your cPanel, log into PhpMyAdmin under the databases section.
- Next to upload the actual zip file to the site using PhpMyAdmin. Select your database on the left side of the screen.
- Once selected, click "Import" at the top of the page, then upload your database backup.