How CodeGuard Restores Work

With CodeGuard, you have the power to decide the type of restoration you would like for your site, be it for a single file, a database or even the entirety of a website.

Once the restoration process is complete, a backup of the newly implemented changes is created. In addition, the account owner will receive an email notification indicating all the files that have been restored.

This article covers the following topics:

How to Restore a Backup Version

Restoring a backup version from CodeGuard is extremely simple, regardless of what needs to be restored.

To restore site files:

  1. Access your CodeGuard Dasbhoard.
  2. Click the Gear icon to the right of the site you wish to download the backup for, and click Restore:

  3. Next to the backup date you would like to restore to, please click the Restore Options button:

  4. You can then choose from the available restore options See Below.

How to Restore a MySQL Database

Did you just suffer a SQL injection or corrupt your database? CodeGuard allows you to restore MySQL databases with just a few clicks.

  1. Log into your CodeGuard account.
  2. Under Unassigned Databases, select your database. 
  3. Below the Backup Progress Tracker for the selected database, click the View All button to review all backups made.
  4. Find the backup you wish to restore.
  5. Click the corresponding Restore Options button.
  6. You can then choose from the available restore options See Below.

Restore Options

Full Site Restore

If a site needs a full restoration, CodeGuard can recreate the site files and structure. Before the restoration, CodeGuard uses a pre-restore backup to obtain a copy of the current site as it stands. You can select the version of your site to restore to before the pre-restore backup is run.

Restore All

After selecting a full site restore, two lists of site content are then created:

  • The site version to be restored
  • The current state of the site

The differences between the two lists provides CodeGuard distinct operations to process for files and folders on the site.

The backup is then downloaded, and the version to be restored is prepped for execution as a connection is opened via FTP/SFTP. The folders in the document root are then replaced with those from the restoration.

Important Note: If your site requires a database, you may need to restore both the files and the corresponding database with the same process.

Individual File Restore

Did a file accidentally get deleted? Have no fear. CodeGuard has you covered! CodeGuard allows individual file restoration without the need of a pre-restore backup. Simply select the file(s) using the type-ahead that will search through the backup versions.

File Restore

Once the files are selected, they are queued to be downloaded from the site repository, and the connection between the website and CodeGuard will be opened via FTP or SFTP. Upon upload, the restored files will have their permissions set and the restore will be complete.

Download a Zip File

Optionally, users can download full copies of a CodeGuard backup in a single zip file. This could be done instead of deleting old backups to clean up servers space. This option is ideal for those wanting to replace files manually or compare the files to see the differences:

zip Download

  • From the Restore Options page, select the Request ZIP button.
  • CodeGuard will begin to compile your files into a ZIP. This may take several minutes, CodeGuard will email you when the file is ready.
  • When your file is ready, refresh the page or follow the steps above to return to it.
  • Right click on the file name and select Save link as... to save the file to your local computer: