Bacula-users

Re: [Bacula-users] ignored entries in FileSet

2011-05-05 22:20:35
Subject: Re: [Bacula-users] ignored entries in FileSet
From: fink <djsnickles AT yahoo DOT com>
To: bacula-users AT lists.sourceforge DOT net
Date: Thu, 5 May 2011 19:17:18 -0700 (PDT)
Thanks for your patience and explanations! This worked perfectly.


--- On Thu, 5/5/11, Martin Simmons <martin AT lispworks DOT 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 AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users