On Monday 28 November 2005 19:38, Martin Simmons wrote:
> >>>>> On Mon, 28 Nov 2005 17:06:00 +0100, Kern Sibbald <[EMAIL PROTECTED]>
> >>>>> said:
>
>   Kern> On Monday 28 November 2005 15:55, Martin Simmons wrote:
>   >> >>>>> On Fri, 25 Nov 2005 09:21:29 +0000, Greg Cope
>   >> >>>>> <[EMAIL PROTECTED]> said:
>
>   Greg> I am trying to glob a load of oracle backup files.  As per Stephan
>   Greg> Ebelt's post these will be under /uNN dirs that are often on
>
>   >> different Greg> file systems.
>
>   Greg> What I am trying to do is;
>
>   Greg> regex = "^\/u[0-9]{2}\/(oraback|oraarch)"
>
>   Greg> But the following fail to match anything bar '/'
>
>   Greg> regex = "^\/u[0-9]{2}\/(oraback|oraarch)"
>   Greg> regex = "^\/u[0-9]{2}\/oraexp"
>   Greg> regex = "^\/u[0-9]{2}\/oraback"
>   Greg> regex = "^\/u[0-9]{2}.oraback"
>
>   Greg> As expected regex = "^\/u[0-9]{2}" matches the lot.
>
>   Greg> Can anyone shed any light on this or the regex code?
>
>   >> The problem is that Bacula walks down the tree of directories looking
>   >> for matching include/exclude patterns.  When it finds an excluded
>   >> directory, it doesn't look any deeper in that directory.  Now /u02
>   >> doesn't match any of the above, so it stops the walk before
>   >> /u02/oraback is found.
>   >>
>   >> BTW, I don't think you need \ before / in a regex.
>
>   Kern> Recently, I added something similar to this example to the FileSet
> chapter of Kern> the manual.  It would be interesting to know what you
> think about the example Kern> Martin since I haven't actually "run" it.  Of
> course, the example doesn't Kern> deal with more complex issues such as
> traversing subdirectories where parents Kern> may be excluded ...
>
> I found the new examples, but what the ^.?*$ is "^.?*$" supposed to mean?

Match the whole line no matter what it contains.  .* doesn't seem to work on 
Linux ...

I'll take another look at it.

> :-) As the manual mentions in a previous example, this regexp doesn't
> compile on FreeBSD, so the example won't work.  Maybe you just want ".*",
> i.e. match anything?
>
> __Martin

-- 
Best regards,

Kern

  (">
  /\
  V_V


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to