Skip to main content

cpbackup-exclude.conf question.

Comments

3 comments

  • Alejandro P
    Hello, I need something similar with an additional detail. I would like exclude not only the public_html but exclude all users homedir. One idea would be a custom backup script, but I would prefer to have this done via system cpbackup. Regarding your query, might you change the cron to include an alternate cpbackup-exclude.conf? Cron content might look like this backup_excluding.sh #!/bin/bash /bin/mv cpbackup-exclude.conf cpbackup-exclude.conf_default mv cpbackup-exclude.conf_excluding_public_html cpbackup-exclude.conf /usr/local/cpanel/scripts/cpbackup /bin/mv /etc/cpbackup-exclude.conf /etc/cpbackup-exclude.conf_excluding_public_html /bin/mv /etc/cpbackup-exclude.conf_default /etc/cpbackup-exclude.conf Then add a cron job like: 0 3 * * 0 /root/backup_excluding.sh 2>&1 /root/backup_excluding.sh should have 755 permission.
    0
  • 0
  • cPanelMichael
    It would be great if cpanel separate Cpanel account configuration from Cpanel Full backups, that way one could transfer just configuration and download, rsync or ftping the account Home Directory solving the problem of transfers in cases user account space is reduced.

    Hello, You can use the "--skiphomedir" flag with /scripts/pkgacct if you want to backup accounts through the command line, excluding the account's home directory. EX:
    /scripts/pkgacct --skiphomedir test01
    Thank you.
    0

Please sign in to leave a comment.