System Backup - ability to change list of backup locations
Open Discussion
cPanel's System Backup backups list of predefined locations. These locations are hard-coded in the cPanel code,
- my @DIRS = (
- $Cpanel::ConfigFiles::VALIASES_DIR,
- $Cpanel::ConfigFiles::VDOMAINALIASES_DIR,
- $Cpanel::ConfigFiles::VFILTERS_DIR,
- $Cpanel::ConfigFiles::FTP_PASSWD_DIR,
- Cpanel::Mailman::Filesys::MAILMAN_DIR(),
- qw(
- /etc/cpanel
- /etc/namedb
- /var/lib/rpm
- /var/lib/named/chroot/var/named/master
- /var/named
- /var/cpanel
- /var/spool/cron
- /var/cron/tabs
- /var/spool/fcron
- /var/log/bandwidth
- /usr/share/ssl
- /etc/ssl
- /var/ssl
- )
- );
Please add a GUI to change this list of locations (add or remove items). For example I would like to disable the MailMan backup, because it is already included in Account backups and sometimes takes huge amounts of space.
While there isn't a GUI option for this request, there is a command line option that is discussed in the system backup documentation here:
https://documentation.cpanel.net/display/ALD/System+Backups#SystemBackups-Files
To configure system backups to include custom files or directories, create a new file or directory in the /var/cpanel/backups/extras directory (for example, /var/cpanel/backups/extras/etc). In that file, enter an absolute path to any files that you wish to back up (for example, /etc/example.conf).
While there isn't a GUI option for this request, there is a command line option that is discussed in the system backup documentation here:
https://documentation.cpanel.net/display/ALD/System+Backups#SystemBackups-Files
To configure system backups to include custom files or directories, create a new file or directory in the /var/cpanel/backups/extras directory (for example, /var/cpanel/backups/extras/etc). In that file, enter an absolute path to any files that you wish to back up (for example, /etc/example.conf).
Thank you for the suggestion, it will be useful in cases when a resource needs to be added to the System Backup list. However my problem was (is) opposite - I need to remove one of the predefined locations from System Backups, which is not possible via the mentioned configuration file.
Thank you for the suggestion, it will be useful in cases when a resource needs to be added to the System Backup list. However my problem was (is) opposite - I need to remove one of the predefined locations from System Backups, which is not possible via the mentioned configuration file.
Replies have been locked on this page!