Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 6 of 6
  1. #1
    Member
    Join Date
    May 2002
    Posts
    40

    Default cpbackup-exclude.conf format

    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. #2
    cPanel Development cpanelkenneth's Avatar
    Join Date
    Apr 2006
    Posts
    3,768
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by deadlock View Post
    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
    Are you using compressed or incremental backup?

  3. #3
    Member
    Join Date
    May 2002
    Posts
    40

    Default

    Incremental is disabled, I'm doing compressed backups via FTP.

  4. #4
    Registered User
    Join Date
    Dec 2008
    Posts
    1

    Default

    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. #5
    Member
    Join Date
    Jul 2006
    Posts
    8

    Default

    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. #6
    cPanel Development cpanelkenneth's Avatar
    Join Date
    Apr 2006
    Posts
    3,768
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by Sir William View Post
    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.
    If .cpbackup-skip files are found, the contents of those directories are added to ~/cpbackup-exclude.conf

Similar Threads & Tags
Similar threads

  1. pkgaccount and cpbackup-exclude.conf
    By TaneNZ in forum Data Protection
    Replies: 9
    Last Post: 08-01-2011, 03:57 PM
  2. cpbackup-exclude.conf ignored until AFTER account size limit checked?
    By finallygreen in forum New User Questions
    Replies: 0
    Last Post: 04-11-2011, 02:20 PM
  3. Trouble with cpbackup-exclude.conf file.
    By crazyfish in forum Data Protection
    Replies: 6
    Last Post: 07-13-2010, 08:32 AM
  4. cpbackup-exclude.conf format, missing something?
    By Lyttek in forum Data Protection
    Replies: 6
    Last Post: 03-15-2010, 08:42 AM
  5. cpbackup-exclude.conf oddness
    By stuartmcdonald in forum cPanel and WHM Discussions
    Replies: 10
    Last Post: 02-05-2010, 03:23 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube