On 11/21/2005 10:28 AM Kern Sibbald wrote:

On Monday 21 November 2005 19:13, Drew Tomlinson wrote:
I'm using Bacula 1.36.3.

In trying to exclude some directories from backup, I tried various
incantations of the "wild=" and "regex=" as described in the
"Configuring the Director" section of the manual.  I could get none to
work.

Then finally while reading through the examples, I found where is says
that the regex functions have been reported not to work on FreeBSD.  Is
there any workaround short of specifying each directory individually?
I'm trying to exclude the "Trash" folder in each users home directory.
The complete path is "/usr/home/<user>/Maildir/.Trash/".  Any suggestions?

Try using "WildDir = *.Trash" and exclusion. You might need to add a / to the end of that expression.

Thanks for your reply. However, neither "*.Trash" nor "*.Trash/" works for me. Just to be sure it's not a syntax issue, here is the specific section of my bacula-dir.conf file:

FileSet {
 Name = "FBSD Root_Usr"
 Include {
   File = /
   File = /usr

   Options {
     compression=GZIP
     signature=MD5
   }
 }

# Second "Include" is to really "Exclude" some wildcard options. See manual
 Include {
   Options {
# Manual states regex has "been reported to not work on FBSD". Leaving
     # as placeholder.  Idea is to exclude /~/Maildir/.Trash
     wilddir="*.Trash/"
     exclude=yes
   }
 }

 Exclude {
   File = "/dev"
   File = "/proc"
   File = "/.journal"
   File = "/.fsck"
   File = "/usr/src"
   File = "/usr/ports"
   File = "/usr/doc"
   File = "/usr/obj"
   File = "/usr/var/db/mysql
   File = "/usr/var/tmp"
 }
}

For the record, I have SIGHUPed the bacula-dir process after making each change. I am using the "estimate job= listing" function from bconsole to test what files will get backed up.

Thanks for your help!

Drew

--
Visit The Alchemist's Warehouse
Magic Tricks, DVDs, Videos, Books, & More!

http://www.alchemistswarehouse.com



-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
Register for a JBoss Training Course.  Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to