Knowledge Base

How Do I Set Up CodeGuard?

Busineses need to securing their data to maintain trust with customers, protect sensitive information, and comply with regulations. Data breaches can lead to financial losses, damage to reputation, and legal consequences. That's why having CodeGuard to your account is crucial.

In this article, we will explain how to configure CodeGuard to backup and restore your website files and database data.

How to Setup Codeguard

  1. Log in to your account.
  2. Click on the Website tab from the navigation tab to the left.
  3. In the Backups section, click the Manage Codeguard button to choose to manage your Codeguard.
    Bluehost dashboard showing a sidebar, arrow to 'Backups' tab, and 'MANAGE CODEGUARD' highlighted.
  4. Click Add FTP/SFTP website.
    Backup summary with website and database success rates, arrow points to 'Add FTP/SFTP Website'.

How to Add a Database to Your CodeGuard Account


  1. In order to add a website, go to the CodeGuard dashboard, as previously mentioned. The Databases tab can be selected.
    Backup interface with 'Databases' tab selected and a button to 'Add Database' for CMS like WordPress.
  2. Select Add Database from the menu.
  3. You can check the server connectivity when adding a database for the first time in CodeGuard by entering the IP address or hostname of the database. The database server's IP address is listed below, where you can find it:
    • cPanel: Look for the IP address in the Stats area of the cPanel control panel.

    • Plesk: Select the Databases link in the Plesk control panel.

      Find the IP address in the Database server column of the following screen.

  4. Choose the Test Connection button.
    Database connection test screen with input for hostname/IP and a 'Test Connection' button.

    Note: Make sure your hosting control panel has the IP addresses provided by CodeGuard whitelisted before continuing to use a direct MySQL connection.

  5. You must add the information to your database. If you have them, go on to step 6. You can retrieve the database details from an existing database if they are not immediately available.

    Below is a description of this procedure for a few popular hosting control panels:

    • cPanel:
      1. Click the MySQL Databases link in the Databases area of the cPanel control panel.
      2. Select the database user link under the Current Users section for a current user.
      3. Change the database user's password.
    • Plesk:
      1. Select the Databases option from the Plesk control panel.
      2. You may see a list of the current databases here. On the Users tab, click.
      3. Now, you may see a list of the current database users. Please select the user link.
      4. Change the database user's password.
  6. If your connection is successful, you will see the screen below. Specify your database here.Database credential form with connection options and 'Next Step' button.

    Note: You can connect to the database using SSH if your hosting account's SSH feature has been enabled. Select the Tunnel option over SSH in this case.

  7. Click the Add Databases option after choosing the database to be added. After that, CodeGuard will initiate the first backup procedure.
    Database selection for 'example.com' with an 'Add Databases' button
  8. You can see the progress of the backup procedure after it has begun. When the backup procedure is finished, the screen below will be displayed.
    Completed backup progress with step-by-step history and a positive customer review.


The instructions below can be used to add an MS-SQL database to CodeGuard.

  1. Click Databases on the navigation bar, then click Add Database if you still need to configure a database for your website.
    Screen with 'Add a Database' button on the 'Databases' tab for CMS websites.
  2. Take note of the database hostname or IP address from your Plesk control panel.
  3. Enter the IP address or database hostname of the server. Click on Test Connection.
  4. Firewall access will be verified by CodeGuard. The connection will be indicated in green as shown if it is successful. Then select Next.
    Firewall test interface with two checked IP addresses and navigation for 'Next Step'.
  5. Click Next Step on the Whitelist IP Addresses page.
  6. If you want to connect a database to CodeGuard, enter the database login and password. To continue, click Next.

    Note the database name from the Plesk Panel.

  7. Click Add Database after entering the database name you want to add to CodeGuard.
    Database selection for 'example.com' with an 'Add Databases' button
  8. Once the database has been successfully added, you will see a success screen.

    Note: The database should be added, and the backup procedure should begin, if you receive the error as indicated, please wait approximately five minutes and then select RETRY ACTIVATION.

    Database management interface with a failed backup alert for 'janertax_test' and a 'Retry Activation' button.

The procedure for adding a website and a database to your CodeGuard account is now complete. Your website and database will be checked by CodeGuard on a regular basis; if any modifications are found, a backup will be made.

How to View Backups Taken by CodeGuard 

  1. Click on the link for the website or database under My Sites in the CodeGuard dashboard.
    Backup summary for a website and database with full success and options to add sites.
  2. Click the View/View All button to open the backup history interface in the website/database-specific view that appears next.
    Completed backup process history with start date, social sharing options, and a countdown to next backup.
  3. To examine the backup details, click the examine Details link next to any backup.
    Backup summary showing files added with date and time, alongside buttons for 'View Details' and 'Restore Options'.
  4. If necessary, you can remove a website or database by choosing Delete from the ACTION menu that corresponds to that website or database.
    Backup log entry for Dec 11, 2018, indicating files added, with 'View Details' and 'Restore Options' buttons.

How to Restore Data from a Backup

  1. To open the Restore interface, select the Restore tab on the CodeGuard dashboard:
    Web interface offering website restore options: Automatic Restore, Download Zip, and Selective Restore.
  2. To see the restore options, click the Restore Options button.
  3. You can select one of the following restore options at this point:
    • Automatic Restore: By automatically replacing all of your current content with backup content, CodeGuard may automatically restore your website.
    • Download Zip: By asking for a zip file of a backup and manually replacing files on your site, you can perform a manual restore by yourself.
    • Selective Restore (applicable only for website restore): When a file is specified to be restored, CodeGuard will do so from a backup.
  4. You can see the progress of the backup procedure after it has begun. When the backup procedure is finished, the screen below will be displayed.

Backup Issues

  1. Clicking the Issues tab in the CodeGuard dashboard will open the Backup Issues interface.
  2. To see more information, click the issue link:
    CodeGuard interface highlighting a backup issue for 'mydomain.com' with details and a support contact option.


Learning how to set up CodeGuard is crucial to protecting your data and ensuring trust and compliance. This guide helps you set up CodeGuard, add databases, view backups, restore data, and troubleshoot issues easily. Just follow the steps to secure your digital assets and stay worry-free.

With CodeGuard, you can rest assured knowing your digital assets are protected and easily recoverable.

If you need further assistance, feel free to contact us via Chat or Phone:

  • Chat Support - While on our website, you should see a CHAT bubble in the bottom right-hand corner of the page. Click anywhere on the bubble to begin a chat session.
  • Phone Support -
    • US: 888-401-4678
    • International: +1 801-765-9400

You may also refer to our Knowledge Base articles to help answer common questions and guide you through various setup, configuration, and troubleshooting steps.

Did you find this article helpful?

* Your feedback is too short