Bacula-users

Re: [Bacula-users] Windows fileset - regexdir

2008-10-20 10:04:43
Subject: Re: [Bacula-users] Windows fileset - regexdir
From: bjoern_busch <bjoern.busch AT gmail DOT com>
To: bacula-users AT lists.sourceforge DOT net
Date: Mon, 20 Oct 2008 07:01:55 -0700 (PDT)
Ok, It seams like the quantifier isn't working.

This works:

RegexDir = "D:/Project/External/[0-9][0-9][0-9][0-9][0-9]_.*"

Any idea why?



bjoern_busch wrote:
> 
> Hi,
> 
> I've browsed the list now for a while, but I can't really find a solution,
> so please excuse me, if there is already an answer and I missed it.
> 
> Bacula is running on an Ubuntu machine, one client is a Windows 2003
> Server. Everything works fine, but the one part of the FileSet doesn't get
> interpreted as I thought it would be.
> 
> The folders that I want to backup look like this:
> 
> D:\Project\External\12345_Something
> D:\Project\External\12346_Something2
> D:\Project\External\12347_Something3
> D:\Project\External\12348_Something4
> 
> The folders that I want to exclude are the following:
> 
> D:\Project\External\1234_Something
> D:\Project\External\1233_Something
> D:\Project\External\123456_Something
> 
> So, assuming that I understood regular expressions and everything
> correctly, the include for that should look like this:
> 
> Include {
>   Options {
>     signature = MD5
>     IgnoreCase = yes
>     Exclude = no
>     RegexDir = "[0-9]{5}_.*"
>   }
>   Options {
>     RegexDir = ".*"
>     Exclude = yes
>   }
>   File = "D:/Project/External/"
> }
> 
> But if I specify it like this, nothing gets backed up. I've tried several
> other combinations, like:
> 
> RegexDir = "D:/Project/External/[0-9]{4}_.*"
> RegexDir = "^[0-9]{4}_.*"
> 
> Please help me, I'm really clueless right now. To verify the correct
> behavior, I use the estimate command. 
> 
> Thanks in advance!
> 

-- 
View this message in context: 
http://www.nabble.com/Windows-fileset---regexdir-tp20067471p20067891.html
Sent from the Bacula - Users mailing list archive at Nabble.com.


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
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>