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, missing something?

Discussion in 'Data Protection' started by Lyttek, May 15, 2009.

  1. Lyttek

    Lyttek Well-Known Member

    Joined:
    Jan 2, 2004
    Messages:
    770
    Likes Received:
    3
    Trophy Points:
    18
    One account has a total of 4 gigs of data, about 3.5 gigs of which are wma and mp3 files located in a directory structure under /home/account/public_html/AudioFiles

    In cpbackup-exclude.conf I've tried the following:

    Code:
    /home/jackhw/public_html/AudioFiles
    /public_html/AudioFiles
    public_html/AudioFiles
    AudioFiles
    ./AudioFiles
    Backups (and manual '/scripts/pkgacct account' files) still come in at around 3.0 gigs...

    Am I missing something here? It doesn't appear that the AudioFiles directory tree is being excluded...
     
  2. Lyttek

    Lyttek Well-Known Member

    Joined:
    Jan 2, 2004
    Messages:
    770
    Likes Received:
    3
    Trophy Points:
    18
    Oddly enough, placing ALL those entries in at once seems to have done it...

    Ok, so WHICH of them should be the correct one?

    I've seen posts that it should be one of these:

    Code:
    /home/jackhw/public_html/AudioFiles
    public_html/AudioFiles
     
  3. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,446
    Likes Received:
    195
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
  4. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    I just had a look at how cpbackup uses those files. It's actually in pkgacct and the file is used as an input to the tar -X (--exclude-from) /homedir/cpbackup-exclude.conf. Each entry in that file needs to be a PATTERN that tar understands. Here's the info page for tar WRT its implemetation of exclude:
    http://www.nada.kth.se/cgi-bin/info?(tar.info)exclude
     
  5. Lyttek

    Lyttek Well-Known Member

    Joined:
    Jan 2, 2004
    Messages:
    770
    Likes Received:
    3
    Trophy Points:
    18
    Hmmm...

    Given that info, it would seem that all of the entries I tried (except the last one) should have worked...

    ... but may be limited based on the capabilities of pkgacct, which I'm guessing is why this didn't work:
    Code:
    /home/jackhw/public_html/AudioFiles
    /public_html/AudioFiles
    ./AudioFiles (not really valid)
    but these would:
    Code:
    public_html/AudioFiles
    AudioFiles
    It would seem that I'd probably be better served by using it to exclude mp3/wma files instead of the directory, thus preserving the directory structure... or not, since I'm already rsyncing that folder to another location anyway...


    Your post was one that I'd referenced :)

    Thanks to you both :)
     
  6. sharmaine001

    sharmaine001 Well-Known Member

    Joined:
    Jun 23, 2006
    Messages:
    143
    Likes Received:
    0
    Trophy Points:
    16
    What if I want to exclude that entire user account from backing up, what shall I write to this file?
     
  7. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,446
    Likes Received:
    195
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    You can remove an account from the backup configuration in WHM to have it be skipped.
     
Loading...

Share This Page