The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

cpbackup-exclude.conf format

Discussion in 'Data Protection' started by deadlock, Dec 23, 2008.

  1. deadlock

    deadlock Well-Known Member

    Joined:
    May 12, 2002
    Messages:
    54
    Likes Received:
    0
    Trophy Points:
    6
    I've tried this new cpbackup-exclude.conf but I can't seem to get it working. I've put the file in the user homedir eg /home/myuser and added lines like this:

    /home/myuser/mytestdir
    /home/myuser/mytestdir2/file1
    /home/myuser/mytestdir2/file2

    ... but all these files/directories are still included in the backup, so I tried:

    ~/mytestdir
    ~/mytestdir2/file1
    ~/mytestdir2/file2

    ... still no luck. What's the correct format for the lines and am I missing anything else?

    I have cPanel 11.24.4-R32603 - WHM 11.24.2
     
  2. cPanelKenneth

    cPanelKenneth cPanel Development
    Staff Member

    Joined:
    Apr 7, 2006
    Messages:
    4,458
    Likes Received:
    22
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    Are you using compressed or incremental backup?
     
  3. deadlock

    deadlock Well-Known Member

    Joined:
    May 12, 2002
    Messages:
    54
    Likes Received:
    0
    Trophy Points:
    6
    Incremental is disabled, I'm doing compressed backups via FTP.
     
  4. ClaytonE

    ClaytonE Registered

    Joined:
    Dec 24, 2008
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    I had the same problem. It looks like they pass this file to tar -X (--exclude-from) so it uses patterns and not absolute paths.

    This worked for me...

    To exclude: /home/myuser/mytestdir
    Use: ./mytestdir

    I didn't try to exclude any files but it should work the same. Also note that the tar documentation warns against trailing whitespace following the patterns but blank lines are ok.

    (cPanel 11.24.4-R32603 - WHM 11.24.2)
     
  5. Sir William

    Sir William Member

    Joined:
    Jul 24, 2006
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    Does anybody know if this added functionality disables the use of the .cpbackup-skip files? I have those in several folders for things that don't need to be backed up.
     
  6. cPanelKenneth

    cPanelKenneth cPanel Development
    Staff Member

    Joined:
    Apr 7, 2006
    Messages:
    4,458
    Likes Received:
    22
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    If .cpbackup-skip files are found, the contents of those directories are added to ~/cpbackup-exclude.conf
     
Loading...

Share This Page