HostGator Integration

February 10, 2021

If a HostGator customer wants to "blacklist" websites or databases from being backed up to their CodeGuard account, then you will need to create a "blacklist" file under their cPanel home directory as described below.

The blacklist is a YAML file located at ~/.codeguard/blacklist

Items may be added to the blacklist by adding new entries to the respective YAML sections. An example blacklist with both website and database sections populated would be:

---
databases:
- hgbackup_wrdp2
websites:
- hostgatorbackup.com

Malformed blacklist files will prevent the resource syncs for the account to fail, so it is very important that the blacklist updates are done properly. If you are unsure of the format, then please use a tool such as yamllint.com to verify the structure before saving the file. One common issue is that people use tabs instead of spaces. Please use spaces.

Empty blacklist:

If you want to 'empty' out the blacklist, then use the following:

---
databases:
-
websites:
-

Even if the customer wants to blacklist only websites or only databases - the 'other' section must still be included in the file. For example:

---
databases:
- hgbackup_wrdp2
websites:
-

or

---
databases:
-
websites:
- hostgatorbackup.com