Knowledgebase

WebHostSG Knowledgebase - CodeGuard Getting Started Guide

CodeGuard Getting Started Guide

Admin
2018-07-09 05:28

This article explains how to get started using CodeGuard to backup and restore your website / database data.

Adding a website to your CodeGuard account

  1. Access CodeGuard from your Client Portal. Learn How

  2. Under the CodeGuard Management Dashboard, click Manage CodeGuard to visit the CodeGuard dashboard

  3. You will be required to add your website FTP details, if you are logging in to the CodeGuard dashboard for the first time. If you have the FTP details, proceed to step 4 directly.

    If the FTP details are not available, you can fetch them for an existing FTP user. This process is explained below for a couple of commonly used hosting control panels:

    • cPanel:

      1. In the cPanel control panel, click the FTP Accounts link under the Files section.

        cpanel ftp

      2. Under the FTP Accounts section, click the Change Password link for an existing FTP user.

        In case of WebHostSG.net's Linux servers, you must use the default FTP user that comes with your cPanel account. You cannot connect to CodeGuard using any other FTP user.

        Create FTP Step 2

      3. Modify the password for the FTP user.

        Change FTP Password

      4. In the cPanel control panel, look out for the IP address under the Stats section.

        cpanel IP address

    • Plesk:

      1. In the Plesk control panel, click the FTP Access link.

        Plesk FTP

      2. Under the FTP accounts section, click the FTP user link for an existing FTP user.

        Plesk FTP user

      3. Modify the password for the FTP user.

        Plesk Change FTP Password

        Here, note down the IP address of the server listed in the IP Addresses field.

    Note

    The process of FTP user management varies for different hosting providers. You need to consult their support team or documentation for more specific instructions.

  4. Provide your website FTP details.

    If your website is hosted on WebHostSG.net's Linux servers use the SFTP option and for WebHostSG.net's Windows servers, use the FTP option.

    CodeGuard Home Page

    Note

    In case of other hosting providers, you can choose either the FTP or SFTP option, based on your service provider's settings.

    If the FTP port for your website is different, you can specify it using the Using a different port? link.

    Click the TEST WEBSITE CONNECTION button to check server connectivity.

  5. On a successful connection, you will see the screen shown below.

    CodeGuard Page2

    Click the CONNECT YOUR WEBSITE button to proceed.

  6. Select the files you want to backup and click the CAPTURE CODE button.

    CodeGuard Page 3

  7. Once the backup process starts, you can view its progress. You will see the screen displayed below, once the backup process is completed.

    CodeGuard Page 4

Adding a database to your CodeGuard account

  1. Visit the CodeGuard dashboard, as explained above in the process for adding a website. Click on any website link to view the website specific details.

    CodeGuard Page 5

  2. Click on the DATABASES tab.

    CodeGuard Page 6

  3. In the next screen shown below, click the ADD DATABASE button.

    CodeGuard Page 7

  4. During the initial addition of a database to CodeGuard, you can test the server connectivity by providing the database hostname or the IP address.

    You can locate the IP address of the database server as mentioned below:

    • cPanel: In the cPanel control panel, look out for the IP address under the Stats section.

      cPanel Ip Address

    • Plesk: In the Plesk control panel, click on the Databases link.

      In the next screen, locate the IP address under the Database server column.

      Plesk Database

    Note

    The process of database management varies for different hosting providers. You need to consult their support team or documentation for more specific instructions.

  5. Click on the TEST CONNECTION button.

  6. You will be required to add your database details. If you have them, proceed to step 7 directly.

    If the database details are not available, you can fetch them for an existing database.

    This process is explained below for a couple of commonly used hosting control panels:

    • cPanel:

      1. In the cPanel control panel, click the MySQL Databases link under the Databases section.

        cPanel mysql

      2. Under the Current Users section, click the database user link for an existing user.

        cpanel mysql user

      3. Modify the password for the database user.

        database password change

    • Plesk:

      1. In the Plesk control panel, click the Databases link.

        Plesk panel

      2. Here, you can view a list of existing databases. Click the Users tab.

        plesk database

      3. You can now view a list of existing databases users. Click on the user link.

        plesk database user

      4. Modify the password for the database user.

        plesk modify db password

  7. On a successful connection, you will see the screen shown below. Enter your database details.

    codeguard add db

    Before you proceed, for direct MySQL connection, ensure that the IP addresses listed below are whitelisted in your hosting control panel:

    • 184.72.217.230

    • 184.72.217.227

    • 184.72.219.00

    • 54.236.233.28

    • 54.236.233.46

    • 54.235.150.113

    Listed below is the process for whitelisting IP addresses in cPanel:

    1. In the cPanel control panel, click the Remote MySQL link under the Databases section.

      cpanel remote mysql

    2. Add the IP addresses to the Access Hosts list individually.

      remote access host

    If SSH has been enabled for your hosting account, you can connect to the database over SSH. Here, choose the Tunnel over SSH option.

    In case of WebHostSG.net's servers, only the Connect to MySQL directly option is supported.

    codeguard database

    Click on the NEXT STEP button to proceed.

  8. Select the database to be added and click on the ADD DATABASE button. CodeGuard will then start an initial backup process.

    codeguard add new db

  9. Once the backup process starts, you can view its progress. You will see the screen displayed below, once the backup process is completed.

    codeguard backing up

This completes the process of adding a website and a database to your CodeGuard account. CodeGuard will now regularly check your website and database and will take a backup if any changes are detected.

View backups taken by CodeGuard

  1. In the CodeGuard dashboard, click on the website or the database link under MY SITES.

    codeguard summary

  2. In the website / database specifc view that follows, click on the VIEW ALL link to view the backup history interface:

    codeguard stats

    cg database page

    Note
    • The automatic backup schedule depends on the CodeGuard plan that you have purchased.

    • If your plan supports it, you can initiate an instant backup process by clicking the RUN BACKUP NOW button.

  3. Click on the VIEW DETAILS link corresponding to any backup to view the backup details:

    cg view details

    cg db details

    cg backup time

  4. If required, you can delete a website or database through the Delete option under the ACTION menu, corresponding to the website or database.

    cg daily backup

    cg summary

Restore your data from a backup

  1. In the CodeGuard dashboard, click on the RESTORE tab to bring up the Restore interface:

    codeguard restore

  2. You can perform an automated test restore on your website to find out if CodeGuard can successfully write to your website, by clicking the START TEST RESTORE button.

    cg restore 2

    The automated test restore is optional. If you want, you can skip it and move to the 5th step.

  3. You will see the message shown below once the test restore process is completed. Click on the VIEW TEST RESTORE RESULTS button to view the result.

    cg restore complete

  4. Click on the Close Window button to proceed.

    cg complete page

  5. Click on the RESTORE OPTIONS button to view the restore options:

    cg restore page

  6. Here, you may choose one of the following restore options:

    cg download zip

    cg restore db

    • Manual Restore: Perform a manual restore yourself by requesting a zip file of a backup & manually replacing files on your site

       

    • Full website restore: CodeGuard will automatically restore your website by replacing all of your current content with content from a backup

       

    • Individual File Restore (applicable only for website restore): Specify a file to be restored and CodeGuard will restore that file from a backup

       

  7. Select one of the last two restore options to initiate the restore process. Once the backup process starts, you can view its progress. You will see the screen displayed below, once the backup process is completed.

    progress tracker

Backup Issues

  1. In the CodeGuard dashboard, click on the ISSUES tab to bring up the Backup Issues interface:

    cg issues

  2. Click on the issue link to view the details:

    cg backup issues

Tags: backup, codeguard, ftp, restore
Average rating: 0 (0 Votes)

You cannot comment on this entry