On Friday 23 September 2005 09:06, Kern Sibbald wrote:
> On Wednesday 21 September 2005 16:43, Sim Zacks wrote:
> > I am using the following FileSet to backup only doc and sxw files on
> > Windows. I have tested this on 1.37.38 and also the current stable
> > version, whatever that might be.
> >
> > >From what I understand in the documentation, when it hits a matching
> >
> > option it follow the rule and if there is no matching option it
> > includes it, so when it sees a doc or sxw file it skips the second
> > Options clause. If it is not a doc or sxw then it always matches the
> > second Options clause. There is no "default" files to be included by not
> > matching.
> >
> > I could not figure out how to not include just files with no extension
>
> Unfortunately, I'm not convinced this is possible without regex -- hence on
> the Windows FD, unless someone knows some trick with wildcards.
Well, after seeing some other responses to this it looks like there *are*
people much more cleaver with wildcards and Bacula Options{} resources than I
am :-)
>
> > FileSet{
> > Name = "docfiles"
> > Include{
> > Options{
> > compression = GZIP
> > signature = MD5
> > wildfile = *.doc
> > wildfile = *.sxw
> > }
> > Options{
> > wildfile = *.*
> > exclude = yes
> > }
> > File = "e:/my documents"
> > }
> > }
> >
> >
> > Sim
> >
> > _________________________________________________________________________
> >__ _____
> >
> > It would indeed be very logical. But it doesn't work unfortunately.
> > Exclude everything with .* or *.* or ".*" or "*.*" doesn't work.
> > It is not permitted in the Exclude resource.
> >
> > My guess is that it should be something like RegexFile = "^.?*$"
> > But I can't get it to work.
> >
> > >Sorry, thought it would be logical. What happens if you just use an
> > >exclude of ".*" or whatever everything is, does the include take
> > >precedence?
> > >
> > >-----Original Message-----
> > >From: Robert Buurke [mailto:[EMAIL PROTECTED]
> > >Sent: 21 September 2005 11:19
> > >To: Purcocks, Graham
> > >Cc: [email protected]
> > >Subject: RE: [Bacula-users] Include & Exclude + RegexFile
> > >
> > >I tried your suggestion, but without the exlude section it backs up
> > >everything from the specified directory.
> > >
> > > >I'm not using this version so I'm shooting from the hip, but I would
> > > >think you don't need the exclude section at all, as using a wild in
> > > > the include would automatically exclude everything else, otherwise
> > > > what's the point.
> > > >
> > > >Try removing the exclude section.
> > > >
> > > >Graham
> > > >
> > > >
> > > >Bacula-dir is 1.36.2
> > > >Bacula-fd on the Windows client is 1.36.2.
> > > >I also tried bacula-fd 1.36.3 on the Windows client without succes.
> > > >
> > > > >Hello,
> > > > >
> > > > >On 21.09.2005 09:43, Robert Buurke wrote:
> > > > >>Sometimes life can be so simple ;-)
> > > > >>It works what you suggested.
> > > > >>
> > > > >>But on another client I need to include *.bkf files and exclude
> > >
> > >every
> > >
> > > > >>other file. What I have tried is this:
> > > > >
> > > > >I'll have to follow this discussion as I always struggle with
> > >
> > >excludes
> > >
> > > >;-)
> > > >
> > > > >>FileSet {
> > > > >> Name = "Client3"
> > > > >> Include {
> > > > >> Options {
> > > > >> wildfile = *.bkf
> > > > >> }
> > > > >> Options {
> > > > >> Exclude = yes
> > > > >> RegexFile = "^.?*$"
> > > > >> }
> > > > >> File = "C:/baculatesting"
> > > > >> }
> > > > >>}
> > > > >>
> > > > >>When I try to do an "estimate" of the client I get "error sending
> > > >
> > > >include
> > > >
> > > > >>list".
> > > > >>If I then check messages in bconsole it says:
> > > > >>
> > > > >>ERROR in getmsg.c:133 Malformed message: REGEX EX EX EX EX EX EX EX
> > >
> > >EX
> > >
> > > >EX
> > > >
> > > > >>EX EX etc.
> > > > >>*Console* Fatal Error: Socket error from Filed on Include command:
> > > >
> > > >ERR=No
> > > >
> > > > >>data available.
> > > > >
> > > > >Which version of the bacula-fd is running on the client, and which
> > > > >bacula-dir version? I guess this might be an imcompatibility with a
> > > > >pre-regex windows FD... then, I'm not even sure if windows FD is
> > > >
> > > >supposed
> > > >
> > > > >to understand regexs.
> > > > >
> > > > >Arno
> > > > >
> > > > >>I have installed almost every regex library package with apt-get
> > > > >> and
> > > >
> > > >the
> > > >
> > > > >>Windows client has .Net Framework 1.1 SP1.
> > > > >>
> > > > >>>Robert Buurke wrote:
> > > > >>> > I'm trying to exclude *.bkf files and include all the other
> > >
> > >files
> > >
> > > >of a
> > > >
> > > > >>> > directory on a Windows client. I used the example from the
> > >
> > >User's
> > >
> > > > >>>Manual:
> > > > >>> > FileSet {
> > > > >>> > Name = "Full Set"
> > > > >>> > Include {
> > > > >>> > Options {
> > > > >>> > wildfile = *.Z
> > > > >>> > wildfile = *.gz
> > > > >>> > Include = yes
> > > > >>> > }
> > > > >>> > Options {
> > > > >>> > Exclude = yes
> > > > >>> > RegexFile = "^.?*$"
> > > > >>> > }
> > > > >>> > File = /myfile
> > > > >>> > }
> > > > >>> > }
> > > > >>> >
> > > > >>> >
> > > > >>> > And changed it to:
> > > > >>> >
> > > > >>> > FileSet {
> > > > >>> > Name = "Client2"
> > > > >>> > Include {
> > > > >>> > Options {
> > > > >>> > Include = yes
> > > > >>> > RegexFile = "^.?*$"
> > > > >>> > }
> > > > >>> > Options {
> > > > >>> > Exclude = yes
> > > > >>> > wildfile = *.bkf
> > > > >>> > }
> > > > >>> > File = "C:/baculatesting"
> > > > >>> > }
> > > > >>> > }
> > > > >>> >
> > > > >>> > If I restart Bacula it complains about that the Include keyword
> > >
> > >is
> > >
> > > >not
> > > >
> > > > >>> > allowed in permitted in this resource. If I then remove Include
> > >
> > >=
> > >
> > > >yes
> > > >
> > > > >>> > from the resource it stops complaining but when I try to do an
> > > > >>> > "estimate" of the client I get "error sending include list".
> > > > >>> >
> > > > >>> > I have installed almost every regex library package with
> > > > >>> > apt-get
> > > >
> > > >and
> > > >
> > > > >>>the
> > > > >>>
> > > > >>> > Windows client has .Net Framework 1.1 SP1.
> > > > >>> >
> > > > >>> > What am I doing wrong?
> > > > >>>
> > > > >>>Since you want to include everything except *.bkf files, I don't
> > >
> > >see
> > >
> > > > >>>that you need an include option at all. Try this:
> > > > >>>
> > > > >>>
> > > > >>>FileSet {
> > > > >>> Name = "Client2"
> > > > >>> Include {
> > > > >>> Options {
> > > > >>> Exclude = yes
> > > > >>> wildfile = *.bkf
> > > > >>> }
> > > > >>> File = "C:/baculatesting"
> > > > >>> }
> > > > >>>}
> >
> > -------------------------------------------------------
> > SF.Net email is sponsored by:
> > Tame your development challenges with Apache's Geronimo App Server.
> > Download it for free - -and be entered to win a 42" plasma tv or your
> > very own Sony(tm)PSP. Click here to play:
> > http://sourceforge.net/geronimo.php
> > _______________________________________________
> > Bacula-users mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/bacula-users
> >
> >
> >
> > -------------------------------------------------------
> > SF.Net email is sponsored by:
> > Tame your development challenges with Apache's Geronimo App Server.
> > Download it for free - -and be entered to win a 42" plasma tv or your
> > very own Sony(tm)PSP. Click here to play:
> > http://sourceforge.net/geronimo.php
> > _______________________________________________
> > Bacula-users mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/bacula-users
--
Best regards,
Kern
(">
/\
V_V
-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server.
Download it for free - -and be entered to win a 42" plasma tv or your very
own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
Bacula-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bacula-users