Bacula-users

Re: [Bacula-users] Wildcard exclude question

2010-02-25 15:05:44
Subject: Re: [Bacula-users] Wildcard exclude question
From: Martin Simmons <martin AT lispworks DOT com>
To: bacula-users AT lists.sourceforge DOT net
Date: Thu, 25 Feb 2010 20:02:48 GMT
>>>>> On Wed, 24 Feb 2010 10:46:15 +0100, Albert Pauw said:
> 
> I am struggling a bit with the wildcard stuff.
> 
> I want to back up all Mail directories in the homedirectories of users, 
> so /home/*/Mail (including subdirs) needs to be backed up.
> In order to take a more generic approach I tried the wild card stuff, 
> but or nothing gets backed up, or everything.
> So maybe somebody can help me out with this simple problem. Here is my 
> fileset definition (which doesn't work):
> 
> FileSet {
>    Name = "MailSet"
>    Include {
>      File = "/home"
>      Options {
>        signature = MD5
>        RegExDir = "^/home/[^/]+$"
>        WildDir = "/home/*/Mail"
>        Wild = "/home/*/Mail/*"
>      }
>      Options {
>        RegexDir = ".*"
>        exclude = yes
>      }
>    }
> }
> 
> Any help will be appreciated.

I would expect that to almost work, but it should say Wild = "/home/*" in the
second options clause to removes all other files (as well as directories).

__Martin

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users

<Prev in Thread] Current Thread [Next in Thread>