On Tuesday 08 April 2008 22:51, Martin Simmons wrote:
> >>>>> On Tue, 8 Apr 2008 12:42:45 +0300, Silver Salonen said:
> > Hi!
> >
> > I'm trying to do similar stuff - to backup E:/Hansaraama/*/Backup folders
and
> > I've still got a minor issue with it.
> >
> > Currently the fileset looks like:
> > FileSet {
> > Name = hansaraama-backup
> > Enable VSS = yes
> > Include {
> > Options {
> > Compression = GZIP
> > Signature = MD5
> > Verify = pins5
> > IgnoreCase = yes
> > WildDir = "E:/Hansaraama/*/Backup"
> > Wild = "E:/Hansaraama/*/Backup/*"
> > WildDir = "E:/Hansaraama/*"
> > }
> > Options {
> > Exclude = yes
> > IgnoreCase = yes
> > Wild = "E:/Hansaraama/*"
> > }
> > File = "E:/Hansaraama"
> > }
> > }
> >
> > The problem with this is that although it doesn't include any files
besides
> > Backup/*, all the folders are still included, eg.
> > E:/Hansaraama/server2006/Setup.
> >
> > How can I avoid these being included?
>
> You are right. I think this is closer to what you want:
>
> FileSet {
> Name = hansaraama-backup
> Enable VSS = yes
> Include {
> Options {
> Compression = GZIP
> Signature = MD5
> Verify = pins5
> IgnoreCase = yes
> WildDir = "E:/Hansaraama/*/Backup"
> Wild = "E:/Hansaraama/*/Backup/*"
> RegExDir = "E:/Hansaraama/[^/]+$"
> }
> Options {
> Exclude = yes
> IgnoreCase = yes
> Wild = "E:/Hansaraama/*"
> }
> File = "E:/Hansaraama"
> }
> }
>
> The RegExDir matches just the direct subdirs of E:/Hansaraama, but nothing
> inside them.
>
> You will still get a few extras, e.g. E:/Hansaraama/foo even if
> E:/Hansaraama/foo/Backup does not exist, but that is necessary because it
must
> look in foo to find see if Backup exists.
>
> __Martin
Yup, right you are. Thanks :)
--
Silver
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users
|