Skip to main content

Exclude directory from System Backup

Comments

2 comments

  • roba
    Update: I found the source of those directories /usr/local/cpanel/Cpanel/Backup/SystemResources.pm The Mailmail directory is added here:
    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 ) );
    However I assume it is not a good idea to touch these files? Either I will break future cPanel updates of this file or my change will get overwritten with then next update... :confused:
    0
  • cPanelMichael
    Hello :) There's no native support for excluding directories from system backups. Manually removing that line from the file you referenced might work, but the file is overwritten during cPanel updates. I suggest opening a feature request for this via: Submit A Feature Request Thank you.
    0

Please sign in to leave a comment.