Loading...

Knowledge Base

How Do I Set Up CodeGuard?

Businesses need to secure 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 on your account is crucial.

In this article, we will explain how to configure CodeGuard to backup and restore your website files and database data. For instructions on restoring backups, check out Restoring Backups with CodeGuard.



How to Setup Codeguard

Step 1: Setup FTP/ SFTP

  1. Log in to your Bluehost Account Manager.
     
  2. Tap Websites from the navigation tab to the left.

    Websites Tab
     
  3. Select what website you would like to enable the backups and click Settings.
     

    Websites Section Settings

  4. In the Backups section, press the Manage CodeGuard to choose to manage your CodeGuard.
     

    Backups Tab

  5. CodeGuard dashboard will show up. Click Add FTP/SFTP Website.
     

    CodeGuard Dashboard

Step 2: Choose files for backup

  1. Fill out the credentials needed and press Test Website Connection afterward.
     

    Test Website Connection

  2. Specify Root Directory: Identify and select the primary folder that contains your website's files and folders. This is often your website's root directory or FTP/SFTP path.

    choosing root directory

  3. Choose the Content for Backup: Carefully select the specific files and folders you wish to include in your backups. To optimize your backup process, consider excluding temporary files and folders such as cache, temp, and logs.

    selecting file for backup

  4. Initiate Backup: Click the Begin First Backup button to start the initial backup process.

    begins first baclup

  5. Backup Completion: Upon successful completion of the backup, you will be presented with a confirmation page.

    back up completed

    Please note that the database will be automatically included when CodeGuard identifies that you have a WordPress site or another Content Management System (CMS) that relies on a database. To finalize the setup, select the options that pertain to your website:

    Go to Dashboard: Click here to view the File Backup Summary and track your Backup Progress.

  6. After adding the websites, they will appear in a list right below the Backup a Site section. The Website Backup section offers more detailed information about completed backups and enables you to customize settings in CodeGuard.

How to Add a Database to Your CodeGuard Account

MySQL

  1. To add a database, go to the CodeGuard dashboard, scroll down, next to Back up a site is Website Backup. Tap the backup name you would like to work on.

    Website Backup
     
  2. After you click the website’s backup name, select Databases next to Files from the menu bar at the top will show up. Then tap Add Database.

    Add Database
     
  3. Provide the Database Hostname or IP Address and tap Test Connection.
     

    Test Connnection

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

  4. 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.
         
  5. Check Firewalls section will be verified by CodeGuard. The connection will be indicated in green as shown if it is successful. Click Next Step.
     
  6. Once the IP Address is verified, go onto the Whitelist tab. Tap Next Step afterward.

    Whitelist
     
  7. On the Add Credentials page, select Direct MySQL and procure the necessary credentials needed. Then proceed to Next Step.
     

    Add Credentials

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

  8. Click the Add Databases option after choosing the domain’s database to be added. After that, CodeGuard will initiate the first backup procedure.

    Databases
     
  9. 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 Progress Tracker

    Note: The Backup Progress Tracker may take some time, depending on the statistics being processed by CodeGuard. The status will be displayed in the top left corner, and the icons below will change automatically to indicate a successful backup process.

MS-SQL

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.

    Add Database
     
  2. Take note of the database hostname or IP address from your Plesk control panel.
     
  3. Enter the server’s IP address or database hostname. 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.
     
  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 is from the Plesk Panel.

  7. Click Add Database after entering the domain's database name you want to add to CodeGuard.

    Databases
     
  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.

    Retry Reactivation

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 Website Backup in the CodeGuard dashboard.

    CodeGuard Main Dashboard
     
  2. Click the website backup’s name to open the file backup summary.

    File Backup Summary
     
  3. If necessary, you can remove a website or database by choosing Delete from the ACTION menu that corresponds to that website or database.

    Website Backup Actions

How to Enable CodeGuard for an Additional Domain

  1. Log into Your Account: Sign in to your Bluehost Account Manager.
     
  2. Locate Your Website: Go to the Hosting section and find the extra website you want to protect.
     
  3. Activate CodeGuard: Click the SETTINGS button, then click the BACKUPS tab and finally, REDEEM CREDIT.

    Redeem Credit
     
  4. Wait for Activation: The system will automatically configure backups for your website’s files and databases.
     
  5. Check Status: The status will show Pending, and the customer can return in 30-60 minutes to confirm their website files and connected database` Status is Active. 

Once complete, your website will be secure with CodeGuard’s backup protection.

Summary

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

Loading...