#1 (permalink)  
Old 05-15-2009, 09:48 AM
Registered User
 
Join Date: Jan 2004
Posts: 672
Lyttek is on a distinguished road
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...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 05-16-2009, 09:21 AM
Registered User
 
Join Date: Jan 2004
Posts: 672
Lyttek is on a distinguished road
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 05-16-2009, 11:19 AM
Infopro's Avatar
Forum Moderator
 
Join Date: May 2003
Location: Pennsylvania
Posts: 3,898
Infopro is on a distinguished road
Lightbulb

public_html/<folder to exclude> worked for me when I tested this a while back.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 05-16-2009, 12:23 PM
chirpy's Avatar
Moderator
 
Join Date: Jun 2002
Location: Go on, have a guess
Posts: 13,495
chirpy will become famous soon enough
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
cPanel Forum Moderator

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 05-18-2009, 09:07 AM
Registered User
 
Join Date: Jan 2004
Posts: 672
Lyttek is on a distinguished road
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 03-15-2010, 03:44 AM
Registered User
 
Join Date: Jun 2006
Posts: 117
sharmaine001 is on a distinguished road
What if I want to exclude that entire user account from backing up, what shall I write to this file?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 03-15-2010, 07:42 AM
Infopro's Avatar
Forum Moderator
 
Join Date: May 2003
Location: Pennsylvania
Posts: 3,898
Infopro is on a distinguished road
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 12:05 AM.


Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
© cPanel Inc