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:
- Website URL
- Hostname or IP address
- SFTP Username
- SFTP Password
- SFTP Port Number
- 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 email@example.com.