This function configures a server's backup system. The system saves these settings in the /var/cpanel/backups/config
file.
backup | integer Default: Whether to enable daily backups.
Example: |
backup | integer Default: The number of daily backups to retain. Example: |
backup | integer Default: Which days of the month to run backups. Note: To add multiple days, use a comma-delimited list. Example: |
backup | integer Default: Whether to enable monthly backups.
Example: |
backup | integer Default: The number of monthly backups to retain. Example: |
backup | integer Default: Which day of the week to run weekly backups.
Example: |
backup | integer Default: Whether to enable weekly backups.
Example: |
backup | integer Default: The number of weekly backups to retain. Example: |
backupacct | integer Default: Whether to back up cPanel user accounts.
Note: This setting affects whether the system enables the File and Directory Restoration interfaces in cPanel and in WHM. For more information, read the How to Manage Metadata Settings documentation. Example: |
backupbwda | integer Default: Whether to back up bandwidth tracking data.
Example: |
backupdays | string Default: Which days of the week to run daily backups.
Note: For multiple days, use a comma-delimited list. Example: |
backupdir | string Default: The primary backup directory. Example: |
backupenab | integer Default: Whether to enable backups.
Note: This setting affects whether the system enables the File and Directory Restoration interfaces in cPanel and in WHM. For more information, read the How to Manage Metadata Settings documentation. Example: |
backupfile | integer Default: Whether to back up system files.
Example: |
backuplogs | integer Default: Whether to back up the error logs.
Example: |
backupmoun | integer Default: Whether to mount a backup partition.
Note: This setting affects whether the system enables the File and Directory Restoration interfaces in cPanel and in WHM. For more information, read the How to Manage Metadata Settings documentation. Example: |
backupsusp | integer Default: Whether to back up suspended accounts.
Example: |
backuptype | string Default: The type of backup to create.
Example: |
check | integer Default: Whether to ensure that the destination server possesses the minimum free disk space available.
Example: |
disable | integer Default: Whether the backup system will create metadata when a backup runs.
Note: This setting affects whether the system enables the File and Directory Restoration interfaces in cPanel and in WHM. For more information, read the How to Manage Metadata Settings documentation. Example: |
errorthres | integer Default: The number of times that the system will try to use the additional backup destination. Example: |
force | integer Default: Whether to strictly enforce the value of the
Example: |
force | integer Default: Whether to strictly enforce the value of the
Example: |
force | integer Default: Whether to strictly enforce the value of the
Example: |
gziprsynco | string Default: The Example: |
keeplocal | integer Default: Whether to delete backups from the local directory.
Note: This setting affects whether the system enables the File and Directory Restoration interfaces in cPanel and in WHM. For more information, read the How to Manage Metadata Settings documentation. Example: |
linkdest | integer Default: Whether to check the
Example: |
localzones | integer Default: Whether to use a local zone file from the
Example: |
maximum | integer Default: How long a restoration will attempt to run, in seconds. If the restoration does not succeed in this amount of time, it will stop. Example: |
maximum | integer Default: How long a backup will attempt to run, in seconds. If the backup does not succeed in this amount of time, it will stop. Example: |
min | integer Default: The minimum amount of free disk to check for on the destination server. Note: If the value of the Example: |
min | string Default: The units of measurement of disk space for the
Example: |
mysqlbacku | string Default: The backup method to use for MySQL® databases.
Example: |
postbackup | integer Default: Whether to run the
Example: |
prebackup | integer Default: Whether to run the
Example: |
psqlbackup | integer Default: Whether to back up PostgreSQL® databases.
Example: |
remote | string The directory that temporarily stores a remote backup's data during a backup restoration.
The data is a compressed ( Important: The system restores backups one at a time. The backup staging directory must be large enough to contain the largest remote backup file that you wish to restore. For example, if you wish to restore three backups, sized 1.5 GB, 528 MB, and 950 MB each, your backup staging directory must be able to hold at least 1.5 GB. Note: The system empties the directory after the system restores the backup. Example: |
HTTP Request was successful.
object |
whmapi1 --output=jsonpretty \ backup_config_set
{- "metadata": {
- "command": "backup_config_set",
- "reason": "OK",
- "result": 1,
- "version": 1
}
}