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.b...@shunsley.eril.net 


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

_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to