Kern Sibbald schrieb: > On Sunday 25 February 2007 16:49, Ralf Gross wrote: > > Ralf Gross schrieb: > > > This is my default FileSet for this client and does not backup ACL's, in > > > /server or /home. > > > > > > FileSet { > > > Name = "VU0EM003 Full" > > > Include { > > > Options { > > > aclsupport = yes > > > signature = MD5 > > > } > > > File = / > > > File = /server > > > File = /public > > > File = /home > > > > > > Options { > > > RegexDir = ".*000_KEIN_BACKUP.*" > > > exclude = yes > > > } > > > } > > > > [snip] > > > > The above does not work because the first Options does nothing. The second > options does an exclude, and if nothing is excuded by the second Options, it > is included, *but* included with the Options used in the *last* Options to > appear within the Include { }. > > The above *probably* would have written (I am unsure what you really wanted) > had you written it as: > > FileSet { > Name = "VU0EM003 Full" > Include { > File = / > File = /server > File = /public > File = /home > Options { > aclsupport = yes > signature = MD5 > RegexDir = ".*000_KEIN_BACKUP.*" > exclude = yes > } > } > > [snip]
After reading this... http://www.bacula.org/rel-manual/FileSet_Resource.html#SECTION001590000000000000000 However, one additional point is that in the case that no match was found, Bacula will use the options found in the last Options resource. As a consequence, if you want a particular set of "default" options, you should put them in an Options resource after any other Options. ...I changed my config to that: FileSet { Name = "VU0EM003 Full" Include { Options { RegexDir = ".*000_KEIN_BACKUP.*" exclude = yes } Options { aclsupport = yes signature = MD5 } File = / File = /public File = /home File = /server } [snip] This is working. I was a bit unsure if I could put everything in one Options{} declaration, because the MD5/ACL options should be used for the files that are not excluded (no suprise...). Therefore putting them to the exclude option didn't look logical to me. Background: we have differnt backup levels, the final level is no backup ;) There is one 000_KEIN_BACKUP (english: no_backup) directory inside every samba project share. The directory and it's content should be completely excluded from backup. People can decide to put there files they don't need to be backed up or files that have already been a archived. This is the archive FileSet. It should only backup the files in all 000_INS_ARCHIV (to_archive) directories. The 000_KEIN_BACKUP directories are explicitly excluded. The archive directories will be backed up 2-3 times a year and will be removed step by step from the file server. The exclude/include is working, I didn't try the aclsupport option, but it should work too. FileSet Name = "VU0EM003 Archiv" Include { Options { RegexDir = ".*000_KEIN_BACKUP.*" exclude = yes } Options { signature = MD5 aclsupport = yes RegexDir = ".*000_INS_ARCHIV.*" } File = /server/projekte } [snip] Ralf ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users