Re: [Bacula-users] options section of exclude in Bacula 3.0
2009-04-13 09:54:44
On Monday 13 April 2009 16:28:57 John Drescher wrote:
> On Mon, Apr 13, 2009 at 2:59 AM, Silver Salonen <silver AT ultrasoft DOT ee>
> wrote:
> > Hello.
> >
> > I upgraded my Bacula on FreeBSD from 2.4.x to 3.0, but running bacula-dir
-t
> > gives an error:
> > =====
> > 13-Apr 09:53 bacula-dir: ERROR TERMINATION at inc_conf.c:712
> > Config error: Options section not permitted in Exclude
> >
> > : line 12, col 10 of file /usr/local/etc/bacula/fileset-
var.conf
> > Options {
> > =====
> >
> > The fileset itself is:
> > =====
> > FileSet {
> > Name = var
> > Include {
> > Options {
> > Compression = GZIP
> > Signature = MD5
> > Verify = pins5
> > }
> > File = /mnt/snap/var
> > }
> > Exclude {
> > Options {
> > wilddir = .snap
> > wilddir = .journal
> > wilddir = .fsck
> > }
> > File = /mnt/snap/var/tmp
> > File = /mnt/snap/var/crash
> > File = /mnt/snap/var/virusmails
> > File = /mnt/snap/var/log
> > }
> > }
> > =====
> >
> > >From release notes I found nothing about 'options' being illegal in
Exclude{}.
> > Is it supposed to be so or is it a bug?
> >
> That I do not know the reason for the change.
>
> However none of the examples in the docs have options in the Exclude part.
>
http://bacula.org/manuals/en/install/install/Configuring_Director.html#SECTION00870000000000000000
>
> It looks like you move the part
>
> Options {
> wilddir = .snap
> wilddir = .journal
> wilddir = .fsck
> }
>
> to a new Include section and add
>
> Exclude = yes in the options like this:
>
> FileSet {
> Name = var
> Include {
> Options {
> Compression = GZIP
> Signature = MD5
> Verify = pins5
> }
> File = /mnt/snap/var
> }
> Include {
> Options {
> wilddir = .snap
> wilddir = .journal
> wilddir = .fsck
> Exclude = yes
> }
> }
> Exclude {
>
> File = /mnt/snap/var/tmp
> File = /mnt/snap/var/crash
> File = /mnt/snap/var/virusmails
> File = /mnt/snap/var/log
> }
> }
Yes, this seems to work, but such a change is still very weird..
--
Silver
------------------------------------------------------------------------------
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users
|
|
|