Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 7 of 7
  1. #1
    Member
    Join Date
    Jan 2004
    Posts
    755

    Default cpbackup-exclude.conf format, missing something?

    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. #2
    Member
    Join Date
    Jan 2004
    Posts
    755

    Default

    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. #3
    cPanel Product Evangelist Infopro's Avatar
    Join Date
    May 2003
    Location
    Pennsylvania
    Posts
    7,161
    cPanel/Enkompass Access Level

    Root Administrator

    Lightbulb

    public_html/<folder to exclude> worked for me when I tested this a while back.

  4. #4
    Super Moderator This forum account has been confirmed by cPanel staff to represent a vendor. chirpy's Avatar
    Join Date
    Jun 2002
    Location
    Go on, have a guess
    Posts
    13,495

    Default

    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
    Jonathan Michaelson

    Need your cPanel servers secured and tuned?
    cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
    Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
    http://www.configserver.com

  5. #5
    Member
    Join Date
    Jan 2004
    Posts
    755

    Default

    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...


    Quote Originally Posted by infopro
    public_html/<folder to exclude> worked for me when I tested this a while back.
    Your post was one that I'd referenced

    Thanks to you both

  6. #6
    Member
    Join Date
    Jun 2006
    Posts
    146

    Default

    What if I want to exclude that entire user account from backing up, what shall I write to this file?

  7. #7
    cPanel Product Evangelist Infopro's Avatar
    Join Date
    May 2003
    Location
    Pennsylvania
    Posts
    7,161
    cPanel/Enkompass Access Level

    Root Administrator

    Lightbulb

    Quote Originally Posted by sharmaine001 View Post
    What if I want to exclude that entire user account from backing up, what shall I write to this file?
    You can remove an account from the backup configuration in WHM to have it be skipped.

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 oddness
    By stuartmcdonald in forum cPanel and WHM Discussions
    Replies: 10
    Last Post: 02-05-2010, 03:23 PM
  5. cpbackup-exclude.conf format
    By deadlock in forum cPanel and WHM Discussions
    Replies: 5
    Last Post: 12-30-2008, 04:29 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube