>>>>> On Wed, 28 Oct 2009 06:25:54 +0200, Avi Rozen said: > > Martin Simmons wrote: > > You need to match the parent directories themselves and then the contents of > > owned-by-bacula: > > > > FileSet { > > Name = test-fileset > > Include { > > Options { > > # Match all directories leading up to the cherry picked directory > > regexdir = "^/home$" > > regexdir = "^/home/avrozen$" > > regexdir = "^/home/avrozen/temp$" > > regexdir = "^/home/avrozen/temp/bacula-test$" > > regexdir = "^/home/avrozen/temp/bacula-test/owned-by-root$" > > regexdir = > > "^/home/avrozen/temp/bacula-test/owned-by-root/owned-by-avrozen$" > > # Match the cherry picked directory itself > > regexdir = > > "^/home/avrozen/temp/bacula-test/owned-by-root/owned-by-avrozen/owned-by-bacula$" > > # Match the contents of the cherry picked directory > > wild = > > "/home/avrozen/temp/bacula-test/owned-by-root/owned-by-avrozen/owned-by-bacula/*" > > } > > Options { > > # Skip everything else > > wild = "*" > > Exclude = yes > > } > > File = / > > } > > } > > > > Note the $ at the end of each regexdir to make it match only the directory > > and > > nothing else with that prefix. > > > > __Martin > > > > > Works! Thanks! > > It also works if I replace regexdir with wilddir (and remove the ^ and $).
Ah, yes, wilddir will suffice here. I was just overly cautious about wilddir matching a prefix, but that only happens with a trailing *, for example merging wilddir = "/a/b/c/owned-by-bacula" wild = "/a/b/c/owned-by-bacula/*" into one line like this: wild = "/a/b/c/owned-by-bacula*" will spuriously match /a/b/c/owned-by-bacula-but-unwanted. __Martin ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users