Bacula-users

Re: [Bacula-users] Filesets and Windows Vista

2008-04-08 15:52:09
Subject: Re: [Bacula-users] Filesets and Windows Vista
From: Martin Simmons <martin AT lispworks DOT com>
To: silver AT ultrasoft DOT ee
Date: Tue, 8 Apr 2008 20:51:28 +0100
>>>>> On Tue, 8 Apr 2008 12:42:45 +0300, Silver Salonen said:
> 
> On Friday 06 July 2007 23:49, Martin Simmons wrote:
> > On Thu, 05 Jul 2007 14:16:34 +0200, Søren Thing Andersen said:
> > It can't be done with WildDir like that.  The basic problem is that your
> > exclude case matches C:/Users/foo, so c:/Users/foo/Desktop is never reached.
> > 
> > Something like this might work:
> > 
> > FileSet {
> >         Name = "Windows Vista"
> >         Ignore FileSet Changes = yes
> >         Include {
> >                 Options {
> >                         Ignore Case = yes
> >                         WildDir = "c:/Users/*/Desktop"
> >                         Wild    = "c:/Users/*/Desktop/*"
> >                         WildDir = "c:/Users/*/Documents"
> >                         Wild    = "c:/Users/*/Documents/*"
> >                         WildDir = "c:/Users/*"
> >                 }
> >                 Options {
> >                         Exclude = yes
> >                         Ignore Case = yes
> >                         Wild = "c:/Users/*/*"
> >                 }
> >                 File = c:/Users
> >         }
> > }
> > 
> > 
> > __Martin
> 
> 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

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Register now and save $200. Hurry, offer ends at 11:59 p.m., 
Monday, April 7! Use priority code J8TLD2. 
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
<Prev in Thread] Current Thread [Next in Thread>