Loading...

Knowledge Base

How to Generate & Download a Website Backup

Did you find this article helpful?
Copy Link

 
* Your feedback is too short
Share

All of our accounts can keep a full backup of their hosting package. This is advised as a best practice in case your content needs to be replaced or restored. The method necessary for creating a backup depends on your hosting type.

This article covers the following topics.


CodeGuard

Customers with critical business information or data are STRONGLY encouraged to use CodeGuard to protect their websites against unforeseen circumstances. CodeGuard provides more fine-grained control over backup and restore operations and allows customers to tailor the process to suit their site's specific requirements. It allows customers to back up cPanel accounts over the backup limits imposed by HostGator.

To manage your backups via CodeGuard:

  1. Log in to your Customer Portal.
  2. There are two ways to access your CodeGuard.
    • Via the Websites tab:
      1. Click Websites in the left-side menu.

        Customer Portal - Websites tab

      2. Locate your website from the list, then click Settings.
        Customer Portal - Websites - Settings button
    • Via the Hosting tab:
      1. Click Hosting from the left-side menu.

        Customer Portal - Hosting tab

      2. Locate your website's hosting plan with CodeGuard, then click its Manage button at the far right.

        Hosting tab - Manage button

      3. Locate your website, then click its Settings button.

        Hosting tab - Manage - Settings button

  3. Click the Backups tab.

    Customer Portal - Backups tab

  4. Under the Backups section, you can manage your backups using CodeGuard by logging into its Dashboard, where you can restore a version of your backup or download a copy of your backup on your computer.

For more information about CodeGuard, please visit the following article.


Managing Full cPanel Backups

A full cPanel backup makes a copy of all of your files, email, databases, etc. Once initiated, you must allow the backup time to perform. The server can send you an email to an address you specify once the backup is ready to download. The steps for generating, downloading, and restoring a full backup are explained below.

Note: Shared, Cloud Sites, and Reseller plans may only create cPanel backups up to 10 GB with 150,000 inodes or less. If your backup is larger than 10GB or has more than 150,000 inodes, you must contact HostGator support via phone or chat for help to bypass the limit.

How to generate a full backup in cPanel

To generate a full backup in cPanel:

  1. Log in to cPanel. There are two ways to access your cPanel.
    • Option 1: Access your cPanel directly.
    • Option 2: Access your cPanel via your Customer Portal
      1. Log in to your Customer Portal.
      2. Click Hosting in the left-side menu.

        Customer Portal - Hosting menu

      3. Scroll down to the Server Information section.
      4. Under Quick Links, click the cPanel button.

        Hosting menu - Quick Links - Launch cPanel

  2. Within cPanel, go to the Files section and click on the Backup icon.

    cPanel - Backup

  3. Under Full Backup, click Download a Full Account Backup.

    Full Backup - Download a Full Account Backup.

  4. On the next page, select the Home Directory option from the Backup Destination dropdown menu.

    Backup - Home Directory

  5. For the Email Address field, enter the email address where you want to receive notification once the backup is complete. You may also choose not to receive any notification by selecting the Do not send email notification of backup completion radio button.
  6. Once done, click Generate Backup.
  7. You will see the progress of the backup. Click Go Back.

    Generate Backup - Progress

This will generate your backup and place the tar.gz file within your home directory. Once completed, you can download the backup via cPanel, FTP, or SSH.

How to download a full backup

To download the backup from cPanel:

  1. Log in to cPanel. (See options above on how to log into your cPanel.)
  2. In the Files section, click on the Backups icon.

    cPanel - Backup

  3. Under Full Backup, click Download a Full Account Backup.

    Full Backup - Download a Full Account Backup

  4. Under Backups Available for Download, click the link for the backup file you wish to download.

    Download backup

  5. Select a destination on your computer where you would like to save the backup.

How to restore a full backup

The root user must restore a full backup for the server. We will restore your full backup as long as the backup was for an account previously existing on the server and you have provided the backup in the user home directory.

If you have server root access (which will be the case for VPS and Dedicated hosting customers) and wish to restore your cPanel yourself, the instructions below will walk you through the prerequisites and the steps in the installation:

Warning: It is strongly recommended that this process only be used for backups created by the same account from the same server.

If the cPanel username or primary domain is different from those contained in the backup, the restore will encounter errors that will not be eligible for HostGator support.

If either of these two circumstances applies to your restore request, HostGator will consider your request to be a migration. If any HostGator assistance is required due to these issues, please submit a migration request.

cPanel restore prerequisites

To restore a cPanel account, the filename of the backup must use one of the following formats:

  • cpmove--{USER}
  • cpmove--{USER}.tar
  • cpmove--{USER}.tar. gz
  • {USER}.tar
  • {USER}.tar.gz
  • backup-{BACKUP-DATE_TIME}_{USER}.tar
  • backup-{BACKUP-DATE_TIME}_{USER}.tar.gz
  • backup-{MM.DD.YYYY}_{HH-MM-SS}_{USER}.tar
  • backup-{MM.DD.YYYY}_{HH-MM-SS}_{USER}.tar.gz

Additionally, the file must reside in one of the following locations:

  • /home
  • /usr/home
  • /web
  • /home2
  • /home3
  • /root
  • /usr

The file may also be selected from your local file system during restoration.

cPanel restore with root access

This is for VPS and Dedicated hosting customers only.

To begin the full restoration of a cPanel account:

  1. Log in to WHM as root.
  2. Search Transfer or Restore a cPanel Account at the search function on the left-hand side.

    KVM Restore Options

  3. Select Restore from a local cpmove file or Upload a file to restore, depending on where the file is stored.

    Restore Option

    • Restore from a local cpmove file - Select this option if the cpmove file already exists on the server in one of the predefined locations.
    • Upload a file to restore - Select this option if you want to upload the cpmove file to the server.
      Warning: If you have a different account on this server with the same cPanel username, it WILL be overwritten, destroying the account's contents.
  4. Place a checkmark next to Overwrite the existing user to allow cPanel to overwrite the existing cPanel account.

    Warning - Overwrite existing user

  5. Select whether to replace all instances of the original server's IP address with the new address or only replace basic cPanel-provided A records in the zone files (either option should be sufficient if you are not attempting to migrate data).

    Mitigate A record

  6. Click the Restore button.

The restoration process will now begin. Please be aware that the process requires the active use of multiple applications, such as MySQL. Do NOT shut down or restart any processes on the server during the restore process.


Compatibility Concerns

Because of changes cPanel has made to the backup system and other system features between cPanel versions, there are several compatibility issues in the restoration process which you should be aware of:

  • MySQL and PostgreSQL database passwords

    In cPanel & WHM version 11.42 and later, the system restores MySQL and PostgreSQL databases to the account but does not restore the user's password. This action locks the user out of the databases.

    The next time the user manages a database with the phpPgAdmin or phpMyAdmin program, the system refreshes the user's privileges and restores their access.

  • Horde

    The Horde webmail client has been removed from cPanel as of version 108. If a backup was created under earlier versions of cPanel, then the user will not have Horde available, but all calendars and contacts should be automatically migrated into the Roundcube webmail client.

 

Did you find this article helpful?
Copy Link

 
* Your feedback is too short

Loading...