Re: [Bacula-users] ignored entries in FileSet
On Wed, 4 May 2011 20:04:05 -0700 (PDT), fink said: --- On Wed, 5/4/11, Martin Simmons mar...@lispworks.com wrote: You need to include the intervening directories, but not their contents, as in http://www.mail-archive.com/bacula-users@lists.sourceforge.net/msg33689.html Thanks for your help! The link was very helpful, and I got the basics working. Here is my current FileSet: FileSet { Name = FreeBSDConfigs Include { Options { RegexDir = ^/usr/jails/[^/]+$ WildDir = /usr/jails/*/etc Wild = /usr/jails/*/etc/* WildDir = /usr/jails/*/usr WildDir = /usr/jails/*/usr/local WildDir = /usr/jails/*/usr/local/etc Wild = /usr/jails/*/usr/local/etc/* } Options { RegexDir = .* Wild = /usr/jails/* Wild = */defaults/* Wild = */periodic/* Wild = */rc.d/* exclude = yes } File = /etc File = /usr/local/etc File = /usr/jails } } Is it necessary to specify both of these lines? WildDir = /usr/jails/*/etc Wild = /usr/jails/*/etc/* Yes, you need both. An alternative like Wild = /usr/jails/*/etc* would be wrong because it would also match a file called /usr/jails/foo/etcblah. Will Bacula backup a directory, but not its contents? Yes (e.g. it is useful for mount-points). Also, although I've specified to exclude the defaults, periodic, and rc.d directories, they are still listed in the job estimate. What am I doing wrong? The problem is that they match the first Options clause, so Bacula accepts them immediately without looking at the second clause. It should work with three Options clauses: # exclude some things matched by the second Options clause Options { Wild = */defaults/* Wild = */periodic/* Wild = */rc.d/* exclude = yes } # include a little more than what we want Options { RegexDir = ^/usr/jails/[^/]+$ WildDir = /usr/jails/*/etc Wild = /usr/jails/*/etc/* WildDir = /usr/jails/*/usr WildDir = /usr/jails/*/usr/local WildDir = /usr/jails/*/usr/local/etc Wild = /usr/jails/*/usr/local/etc/* } # exclude everything else Options { RegexDir = .* Wild = /usr/jails/* exclude = yes } Beware that the first Options clause is slightly underspecified, e.g. it will exclude a jail called periodic (/usr/jails/periodic). Adding etc to the patterns would help. __Martin -- WhatsUp Gold - Download Free Network Management Software The most intuitive, comprehensive, and cost-effective network management toolset available today. Delivers lowest initial acquisition cost and overall TCO of any competing solution. http://p.sf.net/sfu/whatsupgold-sd ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] ignored entries in FileSet
Thanks for your patience and explanations! This worked perfectly. --- On Thu, 5/5/11, Martin Simmons mar...@lispworks.com wrote: The problem is that they match the first Options clause, so Bacula accepts them immediately without looking at the second clause. It should work with three Options clauses: # exclude some things matched by the second Options clause Options { Wild = */defaults/* Wild = */periodic/* Wild = */rc.d/* exclude = yes } # include a little more than what we want Options { RegexDir = ^/usr/jails/[^/]+$ WildDir = /usr/jails/*/etc Wild = /usr/jails/*/etc/* WildDir = /usr/jails/*/usr WildDir = /usr/jails/*/usr/local WildDir = /usr/jails/*/usr/local/etc Wild = /usr/jails/*/usr/local/etc/* } # exclude everything else Options { RegexDir = .* Wild = /usr/jails/* exclude = yes } Beware that the first Options clause is slightly underspecified, e.g. it will exclude a jail called periodic (/usr/jails/periodic). Adding etc to the patterns would help. -- WhatsUp Gold - Download Free Network Management Software The most intuitive, comprehensive, and cost-effective network management toolset available today. Delivers lowest initial acquisition cost and overall TCO of any competing solution. http://p.sf.net/sfu/whatsupgold-sd ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] ignored entries in FileSet
On Tue, 3 May 2011 21:18:31 -0700 (PDT), fink said: I'm Using Bacula 5.0.3 server clients. At this point, I'm trying to just back up the etc directories of multiple jails in /usr/jails on a FreeBSD Bacula client. The Bacula server's director config looks like: FileSet { Name = FreeBSDConfigs Include { Options { signature = MD5 # RegexDir = /usr/jails/[^/]*/etc$ # RegexDir = /usr/jails/[^/]*/usr/local/etc$ WildDir = /usr/jails/voip/etc } Options { RegexDir = .* exclude = yes } File = /usr/jails } } I've tried variations on the included files. None seem to work, not even specifying a particular directory in the WildDir command – everything is excluded. You need to include the intervening directories, but not their contents, as in http://www.mail-archive.com/bacula-users@lists.sourceforge.net/msg33689.html __Martin -- WhatsUp Gold - Download Free Network Management Software The most intuitive, comprehensive, and cost-effective network management toolset available today. Delivers lowest initial acquisition cost and overall TCO of any competing solution. http://p.sf.net/sfu/whatsupgold-sd ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] ignored entries in FileSet
--- On Wed, 5/4/11, Martin Simmons mar...@lispworks.com wrote: You need to include the intervening directories, but not their contents, as in http://www.mail-archive.com/bacula-users@lists.sourceforge.net/msg33689.html Thanks for your help! The link was very helpful, and I got the basics working. Here is my current FileSet: FileSet { Name = FreeBSDConfigs Include { Options { RegexDir = ^/usr/jails/[^/]+$ WildDir = /usr/jails/*/etc Wild = /usr/jails/*/etc/* WildDir = /usr/jails/*/usr WildDir = /usr/jails/*/usr/local WildDir = /usr/jails/*/usr/local/etc Wild = /usr/jails/*/usr/local/etc/* } Options { RegexDir = .* Wild = /usr/jails/* Wild = */defaults/* Wild = */periodic/* Wild = */rc.d/* exclude = yes } File = /etc File = /usr/local/etc File = /usr/jails } } Is it necessary to specify both of these lines? WildDir = /usr/jails/*/etc Wild = /usr/jails/*/etc/* Will Bacula backup a directory, but not its contents? Also, although I've specified to exclude the defaults, periodic, and rc.d directories, they are still listed in the job estimate. What am I doing wrong? -- WhatsUp Gold - Download Free Network Management Software The most intuitive, comprehensive, and cost-effective network management toolset available today. Delivers lowest initial acquisition cost and overall TCO of any competing solution. http://p.sf.net/sfu/whatsupgold-sd ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
[Bacula-users] ignored entries in FileSet
I'm trying to emulate a FileSet example from the manual: http://www.bacula.org/5.0.x-manuals/en/main/main/Configuring_Director.html#SECTION00188 Specifically, this example: An alternative would be to include the two subdirectories desired and exclude everything else: FileSet { Name = Full Set Include { Options { wilddir = /home/a* wilddir = /home/b* } Options { RegexDir = .* exclude = yes } File = /home } } I'm Using Bacula 5.0.3 server clients. At this point, I'm trying to just back up the etc directories of multiple jails in /usr/jails on a FreeBSD Bacula client. The Bacula server's director config looks like: FileSet { Name = FreeBSDConfigs Include { Options { signature = MD5 # RegexDir = /usr/jails/[^/]*/etc$ # RegexDir = /usr/jails/[^/]*/usr/local/etc$ WildDir = /usr/jails/voip/etc } Options { RegexDir = .* exclude = yes } File = /usr/jails } } I've tried variations on the included files. None seem to work, not even specifying a particular directory in the WildDir command – everything is excluded. Sample bconsole output: mrp:~ tehfink$ bconsole Connecting to Director backup.macarch.office:9101 1000 OK: backup.macarch.office-dir Version: 5.0.3 (04 August 2010) Enter a period to cancel a command. *estimate job=router.macarch.office-config listing Using Catalog MyCatalog Connecting to Client router.macarch.office-fd at router.macarch.office:9102 drwxr-xr-x 10 root wheel 10 2011-03-18 23:25:57 /usr/jails 2000 OK estimate files=1 bytes=0 * However, output from bregex and bwild indicate that the RegexDir WildDir commands should work: mrp:~ tehfink$ bregex -f filetree.txt Enter regex pattern: /usr/jails/[^/]*/etc$ 151648: /usr/jails/proxy/etc 451816: /usr/jails/voip/etc 452183: /usr/jails/newjail/etc 627291: /usr/jails/dns/etc 629333: /usr/jails/db/etc Enter regex pattern: /usr/jails/[^/]*/usr/local/etc$ 144299: /usr/jails/proxy/usr/local/etc 306312: /usr/jails/voip/usr/local/etc 484921: /usr/jails/dns/usr/local/etc 629770: /usr/jails/db/usr/local/etc … mrp:~ tehfink$ bwild -f filetree.txt Enter a wild-card: /usr/jails/voip/etc 451816: /usr/jails/voip/etc If I remove the `RegexDir = .*` command, all files directories in /usr/jails are listed for backup. My FileSet setup seems almost exactly like the example from the manual. What am I missing/doing wrong? Apologies if this is a dumb question; I'm a bacula noob. And TIA for help! -- WhatsUp Gold - Download Free Network Management Software The most intuitive, comprehensive, and cost-effective network management toolset available today. Delivers lowest initial acquisition cost and overall TCO of any competing solution. http://p.sf.net/sfu/whatsupgold-sd ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users