cpbackup-exclude.conf format, missing something?

Lyttek

Well-Known Member
Jan 2, 2004
775
5
168
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...
 

Lyttek

Well-Known Member
Jan 2, 2004
775
5
168
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
 

chirpy

Well-Known Member
Verifed Vendor
Jun 15, 2002
13,437
33
473
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
 

Lyttek

Well-Known Member
Jan 2, 2004
775
5
168
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...


infopro said:
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 :)
 

sharmaine001

Well-Known Member
Jun 23, 2006
143
0
166
What if I want to exclude that entire user account from backing up, what shall I write to this file?