|
From: Geert S. <Gee...@va...> - 2012-06-21 06:29:04
|
For the archive, the previous posting in the discussion order. Nothing new.
Op 20120620 om 17:55 schreef Clark, Patricia A.:
> On 6/18/12 2:12 PM, "Martin Simmons" <ma...@li...> wrote:
> > On Fri, 15 Jun 2012 13:59:26 -0400, Clark, Patricia A said:
> >>
> >> To get the multiple streams I've broken my filesets and their
> >> corresponding jobs into multiple pieces. The snippets below are 2
> >> of the 7 that I created. I am finding that I am getting everything
> >> in /home from each of these filesets and not just the subset of the
> >> home directories. Testing with bwild suggests that the RegexDir
> >> should be correct. So, what am I missing?
> >>
> >> FileSet {
> >> Name = "home_dirs1 Set"
> >> # Capture /home/[0-9]*
> >> Include {
> >> Options {
> >> signature = MD5
> >> RegexDir = "/home/[0-9]*"
> >> }
> >> Options {
> >> RegexDir = ".*" <--I have also tried /home/* to be more explicit
> >> Exclude = yes
> >> }
> >> File = /home
> >> }
> >> }
> >> FileSet {
> >> Name = "home_dirs2 Set"
> >> # Capture /home/[a-e]*
> >> Include {
> >> Options {
> >> signature = MD5
> >> RegexDir = "/home/[a-e]*"
> >> }
> >> Options {
> >> RegexDir = ".*"
> >> Exclude = yes
> >> }
> >> File = /home
> >> }
> >> }
> >
> >Your main RegexDir patterns are wrong: "/home/[0-9]*" matches everything
> >starting with "/home/" because of the definition of "*" in a regex. You
> >probably want wilddir = "/home/[0-9]*" instead.
> >
> >Also, you should wild = "*" instead of RegexDir = ".*".
> >
> >__Martin
>
> Thank you for the suggestions. Using wilddir on the includes works much
> better than the RegexDir. I did find that using wild = "*" on the
> excludes was problematic. I'd backup the directories, but none of the
> files. I've switched to using wilddir for the excludes, too, which adds a
> level of self-documentation to the fileset. A working example shows the
> changes and I just adjust the wilddir statements for the fileset as needed.
>
> FileSet {
> Name = "home_dirs1 Set"
> # Capture /home/[0-9]*
> Include {
> Options {
> signature = MD5
> wilddir = "/home/[0-9]*"
> }
> Options {
> wilddir = "/home/[a-z]*"
> wilddir = "/home/[A-Z]*"
>
> Exclude = yes }
> File = /home
> }
> }
>
Cheers
Geert Stappers
http://www.vanadplatform.com/
|