Bacula-users

Re: [Bacula-users] Fileset: How exclude all except...

2011-06-20 14:42:54
Subject: Re: [Bacula-users] Fileset: How exclude all except...
From: Martin Simmons <martin AT lispworks DOT com>
To: bacula-users AT lists.sourceforge DOT net
Date: Mon, 20 Jun 2011 19:39:28 +0100
>>>>> On Mon, 20 Jun 2011 11:13:39 -0600, Stuart McGraw said:
> 
> > 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.

Adding 

wild = "/home/*/.backup/*"

to the first options clause should fix that.

BTW, excluding all dot files will lose potentially important ones such as
.bashrc and .gnupg.

__Martin

------------------------------------------------------------------------------
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 AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users