How To Manually Connect Your Website To CodeGuard

Manually connect website to CodeGuard

This article explains how to connect your website to the CodeGuard website backup platform if the auto provisioning failed. You will need to have purchased CodeGuard and the auto provisioning must have failed before attempting to perform this manual connection. If you purchased CodeGuard and the auto provisioning failed we recommend contacting support before attempting to resolve the issue by following this tutorial.


1         Log in to CodeGuard

1.1         Log in to Client Area on
1.2         Go to Services → My Services
1.3         Click on your hosting account for the website you would like to back up.
1.4         In the “Manage Backups” window, select “Manage”. Please take note that you need to have already purchased CodeGuard for your website. If you haven’t it is available in the “Website & Security” menu in the Client Area as “Website Backup”.


2         Add a website

2.1         Click Add FTP/SFTP Website

CodeGuard Add Website


2.2         Add Your Website

Website URL: (Replace with your website URL)
Protocol: Choose SFTP protocol
SFTP/FTP Server:
Username: This must be the username used to log in to cPanel. This will be in your hosting welcome email, alternatively you may ask support for your username.
Password: Your cPanel password, which will also be in the hosting welcome email.
Port Number: 24


Click “Test Connection” when you have entered all your website details.

CodeGuard Website Credentials


2.3         Capture Your Code

2.3.1        Step 1: Select your root directory

The root directory of your website will usually be the topmost folder named:
/home/”your cPanel username”

Tick the square box next to this folder and click “Select Root Directory”.

Click “Select Root Directory” when you are done.

CodeGuard Capture Your Code


2.3.2        Step 2: Select website content
We recommend selecting the root directory again and deselecting the “tmp” and “logs” folders.

Click “Begin First Backup” when you are done.

CodeGuard Select Website Content


3         Add your databases

After clicking on “Begin First Backup” from the previous section you should see a page like this:

CodeGuard Website Added Successfully

Click on “Add Database Now”.


3.1         Whitelist IP addresses in cPanel

3.1.1        From the Client Area on, go to “My Services” from the Services menu and clock on the hosting package for your website to open the product details page.

HoistaWeb Client Area Products and Services

3.1.2        On the product details page click on “Login to cPanel” in the Actions window on the left-hand side of the page.

HoistaWeb Client Area Log In To cPanel

3.1.3        In cPanel, search for “Remote MySQL” and open it.

HoistaWeb cPanel Remote MySQL

3.1.4        Add the following IP Addresses:

Host Comment CodeGuard IP 1 CodeGuard IP 2 CodeGuard IP 3 CodeGuard IP 4 CodeGuard IP 5

HoistaWeb Remote MySQL IP Addresses


3.2         Test Connection

Add your domain hostname or IP address. The IP address can be found in cPanel as “Shared IP Address” or use

CodeGuard Test Connection


3.3         Check for Firewalls

CodeGuard will check the connection to the server and should report as all connections as successful.

CodeGuard Test Connection


3.4         Whitelist IP Addresses

This step has already been completed. You may simply click “Next Step”.

CodeGuard Whitelist IPs


3.5         Add Credentials

Open cPanel and search for “MySQL Databases” and open it.

HoistaWeb cPanel MySQL Databases

3.5.1        Add New Database User

Add a new database user for CodeGuard. We recommend using an obscure username which cannot be guessed easily. Do not use spaces or any special characters in the username. Use the password generator to generate the password. Copy the password to a Notepad document to use later.

HoistaWeb MySQL Database User

3.5.2        Add User To Database

The newly created database user for CodeGuard needs to be added to the databases you want to backup. On the same MySQL® Databases page, look for “Add User To Database”. Select the newly created username and the database and click “Add”. On the “Manage User Privileges”, select the “Select” and “Show View” privileges and choose “Make Changes”.

HoistaWeb cPanel Database User Privileges

3.5.3        Add Credentials on CodeGuard

External Database Hostname or IP:
MySQL Username: The username of the user you created in MySQL Databases
MySQL: The password you generated for the user

CodeGuard Add Credentials


3.6         Select Databases

If the database user was created correctly you should see the databases of your website on this page. Select the databases you would like to back up and click “Add Databases”.

CodeGuard Select Databases


4         Done

After completing this tutorial your website and databases will back up to CodeGuard. Check on the Dashboard on CodeGuard to make sure there are no issues being reported.

  • 0 Users Found This Useful
Was this answer helpful?