Paper Lantern for cPanel accounts is being retired this year. Find out more »
cPanel & WHM Version 102 has been released, and brings a slew of great updates. Take a look at what is included, and then upgrade today!

System Backup - ability to change list of backup locations

Robert Bareš shared this idea 6 years ago
Open Discussion

cPanel's System Backup backups list of predefined locations. These locations are hard-coded in the cPanel code,

  1. my @DIRS = (
  2. $Cpanel::ConfigFiles::VALIASES_DIR,
  3. $Cpanel::ConfigFiles::VDOMAINALIASES_DIR,
  4. $Cpanel::ConfigFiles::VFILTERS_DIR,
  5. $Cpanel::ConfigFiles::FTP_PASSWD_DIR,
  6. Cpanel::Mailman::Filesys::MAILMAN_DIR(),
  7. qw(
  8. /etc/cpanel
  9. /etc/namedb
  10. /var/lib/rpm
  11. /var/lib/named/chroot/var/named/master
  12. /var/named
  13. /var/cpanel
  14. /var/spool/cron
  15. /var/cron/tabs
  16. /var/spool/fcron
  17. /var/log/bandwidth
  18. /usr/share/ssl
  19. /etc/ssl
  20. /var/ssl
  21. )
  22. );

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.

Replies (2)


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:

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.

Leave a Comment
Attach a file