Creating a cPanel backup file Print

  • 0

The Backups area provides a basic interface for downloading and storing all or some of the website’s files, databases, forwarders and filters. This tool may be useful for more experienced users who wish to expedite the backup process.

Full Backups

You can use this interface to create a full backup. The full backup will include your home directory, databases, email forwarders, and filters.

Create a Full Backup

To save a copy of your website to the web server:

  1. Click the Download or Generate a Full Web Site Backup button.
  2. Select Home Directory from the Backup Destination heading.
  3. Enter your email address.
  4. Click the Generate Backupbutton. You will receive an email once the backup is complete.
    • The date the backup was created appears in the filename (which begins with backup-MM-DD-YYYY). The file will be stored as a “tar ball,” or compressed data file, with the file extension .tar.gz.

Download a Full Backup

To download a full backup to your computer:

  1. Click the Download or Generate a Full Web Site Backup button.
  2. Under Backups Available for Download, select the backup file you’d like to save to your computer.
    • It will be saved as a “tar ball,” or compressed data file with the filename extension .tar.gz. The date the backup was created appears in the filename (which begins with backup-MM-DD-YYYY).

Store a Backup File Remotely

The Full Backup screen can also utilize FTP/SCP to log into a remote computer and store the backup files there. This feature is intended for more advanced users.

When you fill out the required information, the backup file can be stored in a specified directory on a remote machine. Once the process has completed, an email will be sent to the email address you specified.

note Note: You cannot use a full backup to restore your site via the cPanel interface. The file must be downloaded and decompressed prior to restoration. Once the file has been decompressed, you will be able to upload and restore the individual pieces of your website contained within the full backup.

Partial Backups

The Backups page also allows you to store individual pieces of your site. It is possible to download and store the entire /home directory, the SQL database(s), as well as email forwarders and filters by clicking the appropriate links under the Partial Backups headings. This method will download the backup file(s) to your computer, saving them to a specified directory.

Restore the Site from the Backups Link

This function will restore portions of your site using a backup file on your computer. To begin, choose the part of your site you want to restore.

To restore a portion of your site:

  1. Click the appropriate Choose File button.
    • For example, if you would like restore your MySQL database, click the Choose File button under the Restore a MySQL Database heading.
  2. Select the backup file from your computer.
  3. Click Upload to restore that portion of your site.

Important information about your backups

What’s included in my home directory backup?

When you back up your home directory, the backup includes:

  • All of the files that you own.
  • Files that you do not own but have access to.

note Note: Files that you do not own and do not have access to are not included in the backup — even if they are stored in your home directory.

Excluding Files from Backup Using cpbackup-exclude.conf

You can exclude certain files and directories from being included in backups. This is accomplished by listing the files or directories in a configuration file called cpbackup-exclude.conf. To do this:

  1. If it does not already exist, create the file cpbackup-exclude.confin the home directory of the user who owns the files or directories you wish to exclude.
    • For example, type: touch /home/user/cpbackup-exclude.conf
  2. Inside the file, type each item you wish to exclude from backups, one per line. If you enter a directory name, all files inside the directory will be excluded from backups.
    • Directories should not have a trailing slash.
    • Simple shell wildcard characters are allowed for matching control.
    • Here is a sample of the configuration file content:

note Note: This process only works for full backups of a website; it does not apply to Home Directory backups.

Was this answer helpful?

« Back