>>>>> On Sat, 11 Feb 2006 22:32:24 -0800, "Mike" <[EMAIL PROTECTED]> said: > > I'm trying to create a FileSet config for one of our FreeBSD jail host > machines, and I'm having a little trouble getting it just right. > > I have a directory (/u/jail) which has serveral instances of a FreeBSD jail > (basically a virtual server), all under different directories (using their > hostnames) > > So, > > /u/jail/hostname1/ > /u/jail/hostname2/ > > etc, > > We add new hosts to these quite often, so I'd rather not have to specify > each jail hostname by themselves, but I only want to backup certain > directories under the jails. > > The goals is to backup: > > /u/jail/*/etc > /u/jail/*/usr/local > /u/jail/*/u > > but exclude > > /u/jail/*/u/logs > > I attempted to use this- not sure if it's right or not, but it looks like it > was still trying to backup something outside of my config, so I'm guessing > it's not. > > --snip-- > > FileSet { > Name = cust > Include { > Options { > Signature = MD5; > onefs = no; > > wilddir = "/u/jail/*/etc" > wilddir = "/u/jail/*/usr/local" > wilddir = "/u/jail/*/u" > } > Options { > wilddir = "/u/jail/*/u/logs" > Exclude = yes > } > > File = /etc > File = /usr/local > File = /u/home > > File = /u/jail > } > } > > --snip-- > > This is bacula-1.38.2 on FreeBSD 5.4 > > Any help would be appreciated.
I think there are two problems: 1) Bacula stops looking for Options clauses as soon as one with a pattern matches, so "/u/jail/*/u" overrides "/u/jail/*/u/logs" and the logs will be included. 2) Filenames that match none of the patterns will match the implicit default Options clause and still be allowed (e.g. /u/jail/*/bin). __Martin ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 _______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users