On 06/18/2011 01:37 PM, Andrea Conti wrote: >> I want to exclude all dot files in home directories >> ("/home/*/.*"), *except* the directories "/home/*/.backup/". >> >> Any hints on how to do this? > > If you want to exclude dot _files_ (i.e. you don't care about > directories whose name starts with a dot other than .backup), and > assuming you're backing up the whole /home directory, this would be enough: > > FileSet > { > Include > { > Options > { > exclude = yes > wildfile = "/home/*/.*" > } > File = /home > } > }
But this will backup .thunderbird/ with its 800MB mail cache, yes? That's what I want to avoid (without having to maintain a list of specific black-listed files/directories.) > If you also wish to exclude other dot-directories, I would try something > like: > > FileSet > { > Include > { > Options > { > wilddir = "/home/*/.backup" > } > Options > { > exclude = yes > wild = "/home/*/.*" > } > File = /home > } > } That's what I tried before (along with some permutations -- I admit to still not understanding well how Bacula interprets Filesets.) The .backup directory is included in the backed up files but its contents are not. > Regex directives are another option, but IMHO they are a bit overkill > for this problem. I thought so too which is why I asked here. :-) ------------------------------------------------------------------------------ EditLive Enterprise is the world's most technically advanced content authoring tool. Experience the power of Track Changes, Inline Image Editing and ensure content is compliant with Accessibility Checking. http://p.sf.net/sfu/ephox-dev2dev _______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users