Bacula-users

[Bacula-users] RegexDir problem

2010-05-20 06:29:29
Subject: [Bacula-users] RegexDir problem
From: "Beck J Mr" <james.beck AT shunsley.eril DOT net>
To: <bacula-users AT lists.sourceforge DOT net>
Date: Thu, 20 May 2010 11:12:56 +0100
Hello,

I have the following RegexDir option in one of my filesets

RegexDir = "^E:/staff/((?!(staff))|staff[n-z])"

To clarify (hopefully), this statement matches anything which starts
E:/staff/staffn* through E:/staff/staffz*; AND anything which starts
E:/staff/ but does not next contain the word staff, e.g.
E:/staff/this_does_not_say_staff.

I have tested out the statement using this tool:
http://www.regular-expressions.info/javascriptexample.html and
everything woks fine, but when I run the config in Bacula I get the
following error: 

20-May 09:44 bacula-dir: ERROR TERMINATION at inc_conf.c:463
Config error: Regex compile error. ERR=Invalid preceding regular
expression

            : line 36, col 53 of file /etc/bacula/objects/bentham.conf
      RegexDir = "^E:/staff/((?!(staff))|staff[n-z])"

I have tried escaping the ? And ! But I get the same error.

Does any body have any ideas?


Regards,

James Beck
Network Manager

South Hunsley School
Tel: 01482 636719
Email: james.beck AT shunsley.eril DOT net 


------------------------------------------------------------------------------

_______________________________________________
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>