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 HoistaWeb.com
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
2.2 Add Your Website
|Website URL:||yourdomain.co.za (Replace with your website URL)|
|Protocol:||Choose SFTP protocol|
|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.|
Click “Test Connection” when you have entered all your website details.
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.
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.
3 Add your databases
After clicking on “Begin First Backup” from the previous section you should see a page like this:
Click on “Add Database Now”.
3.1 Whitelist IP addresses in cPanel
3.1.1 From the Client Area on HoistaWeb.com, go to “My Services” from the Services menu and clock on the hosting package for your website to open the product details page.
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.
3.1.3 In cPanel, search for “Remote MySQL” and open it.
3.1.4 Add the following IP Addresses:
|188.8.131.52||CodeGuard IP 1|
|184.108.40.206||CodeGuard IP 2|
|220.127.116.11||CodeGuard IP 3|
|18.104.22.168||CodeGuard IP 4|
|22.214.171.124||CodeGuard IP 5|
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 ftp.yourdomain.co.za.
3.3 Check for Firewalls
CodeGuard will check the connection to the server and should report as all connections as successful.
3.4 Whitelist IP Addresses
This step has already been completed. You may simply click “Next Step”.
3.5 Add Credentials
Open cPanel and search for “MySQL Databases” and open it.
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.
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”.
3.5.3 Add Credentials on CodeGuard
|External Database Hostname or IP:||ftp.yourdomain.co.za|
|MySQL Username:||The username of the user you created in MySQL Databases|
|MySQL:||The password you generated for the user|
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”.
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.