Re: [Bacula-users] RegexDir problem
2010-05-20 11:31:56
Okay, Ignore me, I tell lies apparently. Everything is working just fine
now.
Thanks
-----Original Message-----
From: Beck J Mr [mailto:james.beck AT shunsley.eril DOT net]
Sent: 20 May 2010 15:38
To: bacula-users AT lists.sourceforge DOT net
Subject: Re: [Bacula-users] RegexDir problem
So I have done a bit of reading and found I can do this instead:
FileSet {
Name = bentham_full-set
Include {
Options {
signature = MD5
compression = GZIP
IgnoreCase = yes
Regex = "^E:/[0-9]prefix/[0-9][a-mA-M].*"
Regex = "^E:/staff/staff[a-mA-M].*"
}
Options {
IgnoreCase = yes
# RegexDir = "^E:/[0-9]prefix/[0-9][n-z]" # Ignore students whose
first initial is an N through Z
Wild = "E:/0prefix/*"
Wild = "E:/1prefix/*"
Wild = "E:/2prefix/*"
Wild = "E:/3prefix/*"
Wild = "E:/4prefix/*"
Wild = "E:/5prefix/*"
Wild = "E:/6prefix/*"
Wild = "E:/7prefix/*"
Wild = "E:/8prefix/*"
Wild = "E:/9prefix/*"
Wild = "E:/staff/*"
@/etc/bacula/objects/aa-windows_exclude.list
Exclude = yes
}
File = C:/Bacula
File = E:/
File = X:/
}
}
But now when I run the job, encryption and compression is turned off
Any ideas?
-----Original Message-----
From: Beck J Mr [mailto:james.beck AT shunsley.eril DOT net]
Sent: 20 May 2010 11:13
To: bacula-users AT lists.sourceforge DOT net
Subject: [Bacula-users] RegexDir problem
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
------------------------------------------------------------------------
------
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users
------------------------------------------------------------------------------
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users
|
|
|