>>>>> On Wed, 12 Sep 2007 08:28:26 +0300, Yuri Timofeev said:
> 
> Hi, there.
> 
> 
> There is a structure of directories:
> 
> find /tmp/test/
> 
> /tmp/test/
> /tmp/test/a2
> /tmp/test/a2/2
> /tmp/test/a2/2/test_file
> /tmp/test/a2/test_file
> /tmp/test/a2/1
> /tmp/test/a2/1/test_file
> /tmp/test/b1
> /tmp/test/b1/2
> /tmp/test/b1/2/test_file
> /tmp/test/b1/test_file
> /tmp/test/b1/1
> /tmp/test/b1/1/test_file
> /tmp/test/b2
> /tmp/test/b2/2
> /tmp/test/b2/2/test_file
> /tmp/test/b2/test_file
> /tmp/test/b2/1
> /tmp/test/b2/1/test_file
> /tmp/test/test_file
> /tmp/test/a1
> /tmp/test/a1/2
> /tmp/test/a1/2/test_file
> /tmp/test/a1/test_file
> /tmp/test/a1/1
> /tmp/test/a1/1/test_file
> 
> 
> It is required to make backup on a mask:
> "/tmp/test/*/1"
> 
> The following FileSet description does not work:
> Include {
>     Options {
>       wilddir         = "/tmp/test/*/1"
>     }
>     Options {
>       exclude         = yes
>       regexdir        = ".*"
>     }
>     File                = /tmp/test
>   }
> 
> bwild makes correct  output:
>  /tmp/test/a2/1
>  /tmp/test/b1/1
>  /tmp/test/b2/1
>  /tmp/test/a1/1
> 
> estimate command output only "/tmp/test"
> 
> What here it is wrong?
> 
> And how to receive demanded result?

The problem is that walks from from the top, so it excludes /tmp/test/a2
before it ever sees /tmp/test/a2/1.

You need something like this:

Include {
    Options {
      wilddir         = "/tmp/test/*/1"
      wild            = "/tmp/test/*/1/*"
      wilddir         = "/tmp/test/*"
    }
    Options {
      exclude         = yes
      wild            = "/tmp/test/*/*"
    }
    File                = /tmp/test
  }

__Martin

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to