(Home >> Backup >> Legacy Backup Configuration)
This interface allows you to configure how your server creates and stores backup files. You can configure automatic backups, backup retention schedules, and backup storage locations.
We strongly recommend that you only use WHM's Backup Configuration interface (Home >> Backup >> Backup Configuration) to configure backups of your server. We plan to remove the interface from WHM in a future release.
Select the Legacy Backup feature's setting:
Select the interval at which you wish to run automatic backups. You can select Daily, Weekly, or Monthly.
|Backup Retention||Select the backups that you wish to retain.|
|Days to Run Backup||Select the days on which you wish to run backups.|
|Remount/Unmount Backup Drive|
Select whether you wish to remount and unmount the specified backup drive while backups run.
|Bail Out If Backup Drive Mount Fails||Select whether you wish to cancel the backup process if the backup drive fails to mount.|
Enable this option if you wish to only back up and restore data that changes.
|Backup Accounts||Select whether you wish to back up accounts. If if you disable this option, the system only backs up system files. This option is disabled by default.|
|Compress Account Backups||Select whether you wish to compress backup files.|
|Backup Configuration Files|
Select whether you wish to back up configuration files.
|Backup SQL Databases|
Select from the following options for this setting:
|Backup Access Logs||Select whether you wish to store access logs.|
|Backup Bandwidth Data||Select whether you wish to store bandwidth data.|
|Use local DNS zone files rather than retrieving the latest zone updates from the cluster.||Select Enabled to cause the |
Select from the following options for this setting:
|EXPERIMENTAL: Use Hard Links for weekly and monthly backups to reduce disk usage and backup time.||Select whether to use hard links for weekly and monthly backups.|
|EXPERIMENTAL: Enable use of optimized account backup tool.||This setting instructs the backup utility to use the |
|Remote FTP Host (Remote FTP Backup Only)|
If you select the Remote FTP (Accounts Only) option, enter the remote FTP server's IP address in the Remote FTP Host text box.
|FTP Backup User (Remote FTP Backup Only)||If you select the Remote FTP (Accounts Only) option, enter the FTP account's username in the FTP Backup User text box.|
|FTP Backup Password (Remote FTP Backup Only)||If you select the Remote FTP (Accounts Only) option, enter the FTP account's password in the FTP Backup Password text box.|
|FTP Backup Directory||If you select the Remote FTP (Accounts Only) option, enter the directory in which you wish to store backup files.|
|FTP Backup Timeout||If you select the Remote FTP (Accounts Only) option, enter the number of seconds of inactivity after which the FTP transfer times out. This option defaults to |
|FTP Backup Passive Mode||If you select the Remote FTP (Accounts Only) option, enable this option if the remote server is behind a firewall, or if FTP backups fail.|
|Backup Destination||If you use Standard backups, enter the directory in which you wish to store backups.|
|Select Specific Users||Click Select to select the users whose accounts the system automatically backs up.|
After you configure backups to your preferred settings, click Save.
Our backup system copies and stores backup files in multiple locations. This means that for a period of time, your server has two identical files on the file system. Also, when you copy and store a new file, it increases disk input and output (I/O) significantly when you work with large accounts. The system uses hard links to fix these issues.
A hard link is similar to a symlink but can make multiple references to a single inode. This allows our backup system to point a monthly or weekly backup file to an existing daily backup file, without the need to copy and store two different backup files. Ultimately, this prevents redundancies and reduces disk I/O.
When you use a mounted file system to store backups, we strongly recommend that you mount the file system with the
noexec option. If you mount the file system with the
noexec option, binaries cannot run on the mounted file system.
You can configure a file system to use the
noexec option by default. To do so, edit the
/etc/fstab file. This file contains a list of mountable file systems and their configuration options.
The backup utility only mounts or unmounts partitions that appear in the
To configure a mountable file system that automatically uses the
noexec option, edit its entry in the
/etc/fstab file to resemble the following example:
/dev/sda5 /backup ext3 defaults,noexec 0 0
Users who wish to mount or unmount a partition must place the partition in the
The example above describes the following configuration options:
|Device||Default mount point||file system type||Mount options||Dump option||fsck order|
To remount a backup disk while the system boots, run the following command:
mount -o remount,noexec /backup
To run a backup manually, run the
If the backup is up-to-date and you wish to run backups anyway, run the
/usr/local/cpanel/scripts/cpbackup --force script.
The backup process runs as the cPanel user whose data it backs up. The backup process does not back up files or directories that a user cannot access.
For more information about backups, read our Legacy Backups FAQ documentation.