skip to Main Content

I want to exclude any file that has the word backup in it and is in format of zip , tar.gz from cpanel backup I do not know exactly what I should enter in cpbackup-exclude.conf

2

Answers


  1. Chosen as BEST ANSWER

    I contacted cpanel and they told me the following works. Has been tested

    /*backup*.sql
    /*backup*.tar
    /*backup*.tar.bz2
    /*backup*.tar.gz
    /*backup*.zip
    

    So the above will make sure any sql , tart etc that has the word backup in it inside all folders are excluded from backup


  2. You can add “cpbackup-exclude.conf” in a global or user level.

    Global:
    /etc/cpbackup-exclude.conf

    User level:
    /home/username/cpbackup-exclude.conf

    The entries would be like this:

    */backup-*tar.gz
    */backup-*zip
    */backup*gz
    */cpmove*
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search