Effective February 15, 2021, the CodeGuard support center will be merging with the Sectigo support center. This means that support emails will come from support@codeguard.com, and the knowledge base will be hosted on sectigo.com. There will be no interruption of our services, and you will continue to receive top of the line support during and after this transition.

How to add your HostGator shared server website to CodeGuard

In this article, we will show you how to backup your HostGator shared server website.

In order to add your website to CodeGuard, we will need the following pieces of information:

  1. Website URL
  2. Hostname or IP address
  3. SFTP Username
  4. SFTP Password
  5. SFTP Port Number
  6. Website Root Directory

All of this information can be found in your HostGator cPanel.

Step 1: Log into your HostGator cPanel

When you signed up with HostGator, you were emailed your cPanel's URL, username, and password. Use this, or whatever the current password is if you've changed it, to log into your HostGator cPanel.


Step 2: Locate your credentials

Scroll down until you see "General Information" on the right-hand sidebar. Here, you will find the SFTP username under "Current User" (same as your cPanel username) and the URL of your website under "Primary Domain". The root directory of your website will be your Home Directory with /public_html at the end. In the example below, the root directory would be /home1/hgbackup/public_html. Lastly, your site's IP address is listed under "Site IP".

Your SFTP Password is going to be the same as your cPanel password, and the SFTP Port is 2222.


Step 3: Log into your CodeGuard account

Scroll back up to the "Special Offers" section and click the "Cloud Backup" icon.



Next, click "Login to CodeGuard"


Step 4: Add your website to CodeGuard

Click the green "Add FTP/SFTP Website" button on your CodeGuard dashboard


Enter the credentials that you gathered in Step 2 above, then click "Using a different port?".


Enter 2222 into the "Port Number" field and then click "Test Website Connection"


Check the box next to your "public_html" directory and click "Select Root Directory"


To select all of your website files, simply click the top box next to "public_html". if there are any files/folders that you do not need backed up, you can uncheck them as needed. When you're ready, click "Begin First Backup".


Congratulations! You have successfully added your website! Next, you will be prompted to add a database if you have one. For WordPress websites, we will attempt to automatically add the database for you. If you don't see the notice in yellow that indicates your database has been added, you will need to do this too. If you do need to add your database, you can follow the steps outlined in this support article.



If you have any questions about any of these steps, or if you run into any trouble, please let us know by sending an email to support@codeguard.com.

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request