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.
Recently, I added something similar to this example to the FileSet chapter of the manual. It would be interesting to know what you think about the example Martin since I haven't actually "run" it. Of course, the example doesn't deal with more complex issues such as traversing subdirectories where parents may be excluded ... > > __Martin > > > ------------------------------------------------------- > 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 -- 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