Re: [Bacula-users] Still not getting wildcard matching
2011-06-23 06:29:16
>>>>> On Wed, 22 Jun 2011 21:25:24 -0600, Stuart McGraw said:
>
> I am converting FileSets that used mostly used regexes
> to use wild matches where possible. But I am still not
> getting how wildcard matching is working.
>
> Options {
> Wilddir = "/home/*/.backup"
> Wild = "/home/*/.backup/*"
> }
> Options {
> Exclude = yes
> Wild = "/home/*/.*"
> Wilddir = "/home/*/tmp"
> Wilddir = "/home/*/Maildir/.*/tmp"
> }
> File = /home
>
> The above FileSet is excluding all /home/*/Maildir/.* files, not
> just the .../tmp subset I intended. Why? And how do I fix it?
>
> I have not been seen in the Bacula manual a description of exactly
> how filenames match wildcard specs (e.g. does "a*b" match "a/b"?).
Yes, that is the problem. "/home/*/.*" matches "/home/smcg4191/Maildir/.foo"
:-( You'll probably have to use regex for that one.
> Is one available somewhere?
Look at man fnmatch. Bacula can pass the FNM_CASEFOLD flag if IgnoreCase=yes
is specified, but that is the only documented option.
__Martin
------------------------------------------------------------------------------
Simplify data backup and recovery for your virtual environment with vRanger.
Installation's a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Data protection magic?
Nope - It's vRanger. Get your free trial download today.
http://p.sf.net/sfu/quest-sfdev2dev
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users
|
|
|