Re: [Bacula-users] fileset

2007-08-07 Thread Julien
Hi,

I would change the order because of the "first match" rule :

FileSet {
  Name = "DataToSave"
  Include {
Options {
  exclude = yes 
  wildfile = "*.LDF"   ## list of
  wildfile = "*.MDF"   ## extensions I want to
  wildfile = "*.ldb"   ## exclude completly
}
Options {
  signature = MD5  ## list of
  compression = GZIP1  ## extensions
  wildfile = "*.mpg"   ## I would
  wildfile = "*.mpeg"  ## like not to
  wildfile = "*.pdf"   ## be compressed
  wildfile = "*.gz"## ...
  wildfile = "*.tgz"   ## In fact
  wildfile = "*.zip"   ## I use the 
  wildfile = "*.rar"   ## lower compression
  wildfile = "*.mdb"   ## level, because
  wildfile = "*.avi"   ## I couldn't
  wildfile = "*.flv"   ## find out
  wildfile = "*.swf"   ## how to
  wildfile = "*.gif"   ## completly disable
  wildfile = "*.png"   ## software compression.
  wildfile = "*.jpg"   ##
  wildfile = "*.jpeg"  ##
}
Options {  ## Normal compression
  signature = MD5  ## for
  compression = GZIP   ## normals files
}
  File = "d:/PathToSave"   ## The place I want to backup
  }
}

(to check ...)


On Tue, 2007-08-07 at 11:48 +0200, Alexandre Chapellon wrote:
> FileSet {
>   Name = "DataToSave"
>   Include {
> Options {  ## Normal compression
>   signature = MD5  ## for
>   compression = GZIP   ## normals files
> }
> Options {
>   signature = MD5  ## list of
>   compression = GZIP1  ## extensions
>   wildfile = "*.mpg"   ## I would
>   wildfile = "*.mpeg"  ## like not to
>   wildfile = "*.pdf"   ## be compressed
>   wildfile = "*.gz"## ...
>   wildfile = "*.tgz"   ## In fact
>   wildfile = "*.zip"   ## I use the 
>   wildfile = "*.rar"   ## lower compression
>   wildfile = "*.mdb"   ## level, because
>   wildfile = "*.avi"   ## I couldn't
>   wildfile = "*.flv"   ## find out
>   wildfile = "*.swf"   ## how to
>   wildfile = "*.gif"   ## completly disable
>   wildfile = "*.png"   ## software compression.
>   wildfile = "*.jpg"   ##
>   wildfile = "*.jpeg"  ##
> }
> Options {
>   exclude = yes 
>   wildfile = "*.LDF"   ## list of
>   wildfile = "*.MDF"   ## extensions I want to
>   wildfile = "*.ldb"   ## exclude completly
> }
>   File = "d:/PathToSave"   ## The place I want to backup
>   }
> } 


-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] fileset

2007-08-07 Thread Arno Lehmann
Hi,

07.08.2007 11:48,, Alexandre Chapellon wrote::
> Hello,
> 
> I am running bacula on mysite (about 100 servers, with differents OS),
> and am quite happy about it.
> Recently I changed my filesets to speedup the backup and avoid
> compression problem with some files.
> What I want is:
> 
>  - not to compress already compressed files (eg: jpg...)
>  - not to save at all "useless" files (eg: .ldb access lock files...)
> 
> So I wrote the following fileset:

Oh, filesets with exclusions and wildcards... my favourite waste of 
time in Bacula ;-)

Just one hint for now: The options section that matches *first* will 
be applied, so you should define the options starting with the most 
specific definitions first.

In your case, the first option block could be the one defining the 
excludes, then the one defining the files not to get compressed - 
simply omit the compression keyword here - and lastly, as a catch-all 
for the remaining files, set your defaults including compression.

Also note that a fileset change will trigger a new full backup, so 
before playing around with the options, set "Ignore Fileset Changes", 
or use the "estimate listing" command to verify your fileset works as 
it should.

Arno

> 
> FileSet {
>   Name = "DataToSave"
>   Include {
> Options {  ## Normal compression
>   signature = MD5  ## for
>   compression = GZIP   ## normals files
> }
> Options {
>   signature = MD5  ## list of
>   compression = GZIP1  ## extensions
>   wildfile = "*.mpg"   ## I would
>   wildfile = "*.mpeg"  ## like not to
>   wildfile = "*.pdf"   ## be compressed
>   wildfile = "*.gz"## ...
>   wildfile = "*.tgz"   ## In fact
>   wildfile = "*.zip"   ## I use the
>   wildfile = "*.rar"   ## lower compression
>   wildfile = "*.mdb"   ## level, because
>   wildfile = "*.avi"   ## I couldn't
>   wildfile = "*.flv"   ## find out
>   wildfile = "*.swf"   ## how to
>   wildfile = "*.gif"   ## completly disable
>   wildfile = "*.png"   ## software compression.
>   wildfile = "*.jpg"   ##
>   wildfile = "*.jpeg"  ##
> }
> Options {
>   exclude = yes
>   wildfile = "*.LDF"   ## list of
>   wildfile = "*.MDF"   ## extensions I want to
>   wildfile = "*.ldb"   ## exclude completly
> }
>   File = "d:/PathToSave"   ## The place I want to backup
>   }
> }
> 
> 
> Can anyone can take a look at it and tell me if the will behave as
> expected.
> 
> thanks guys! (and girls :p)
> 
> 
> 
> 
> -
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems?  Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >>  http://get.splunk.com/
> 
> 
> 
> 
> ___
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users

-- 
Arno Lehmann
IT-Service Lehmann
www.its-lehmann.de

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] fileset

2007-08-08 Thread Alexandre Chapellon
Just as an information:

- most of my windows 2K clients (with winbacula 1.38.10) didn't like very
much to have no compression specified at all in the option clause! Going
back to gzip1 solved the problem!

2007/8/7, Arno Lehmann <[EMAIL PROTECTED]>:
>
> Hi,
>
> 07.08.2007 11:48,, Alexandre Chapellon wrote::
> > Hello,
> >
> > I am running bacula on mysite (about 100 servers, with differents OS),
> > and am quite happy about it.
> > Recently I changed my filesets to speedup the backup and avoid
> > compression problem with some files.
> > What I want is:
> >
> >  - not to compress already compressed files (eg: jpg...)
> >  - not to save at all "useless" files (eg: .ldb access lock files...)
> >
> > So I wrote the following fileset:
>
> Oh, filesets with exclusions and wildcards... my favourite waste of
> time in Bacula ;-)
>
> Just one hint for now: The options section that matches *first* will
> be applied, so you should define the options starting with the most
> specific definitions first.
>
> In your case, the first option block could be the one defining the
> excludes, then the one defining the files not to get compressed -
> simply omit the compression keyword here - and lastly, as a catch-all
> for the remaining files, set your defaults including compression.
>
> Also note that a fileset change will trigger a new full backup, so
> before playing around with the options, set "Ignore Fileset Changes",
> or use the "estimate listing" command to verify your fileset works as
> it should.
>
> Arno
>
> > 
> > FileSet {
> >   Name = "DataToSave"
> >   Include {
> > Options {  ## Normal compression
> >   signature = MD5  ## for
> >   compression = GZIP   ## normals files
> > }
> > Options {
> >   signature = MD5  ## list of
> >   compression = GZIP1  ## extensions
> >   wildfile = "*.mpg"   ## I would
> >   wildfile = "*.mpeg"  ## like not to
> >   wildfile = "*.pdf"   ## be compressed
> >   wildfile = "*.gz"## ...
> >   wildfile = "*.tgz"   ## In fact
> >   wildfile = "*.zip"   ## I use the
> >   wildfile = "*.rar"   ## lower compression
> >   wildfile = "*.mdb"   ## level, because
> >   wildfile = "*.avi"   ## I couldn't
> >   wildfile = "*.flv"   ## find out
> >   wildfile = "*.swf"   ## how to
> >   wildfile = "*.gif"   ## completly disable
> >   wildfile = "*.png"   ## software compression.
> >   wildfile = "*.jpg"   ##
> >   wildfile = "*.jpeg"  ##
> > }
> > Options {
> >   exclude = yes
> >   wildfile = "*.LDF"   ## list of
> >   wildfile = "*.MDF"   ## extensions I want to
> >   wildfile = "*.ldb"   ## exclude completly
> > }
> >   File = "d:/PathToSave"   ## The place I want to backup
> >   }
> > }
> > 
> >
> > Can anyone can take a look at it and tell me if the will behave as
> > expected.
> >
> > thanks guys! (and girls :p)
> >
> >
> > 
> >
> >
> -
> > This SF.net email is sponsored by: Splunk Inc.
> > Still grepping through log files to find problems?  Stop.
> > Now Search log events and configuration files using AJAX and a browser.
> > Download your FREE copy of Splunk now >>  http://get.splunk.com/
> >
> >
> > 
> >
> > ___
> > Bacula-users mailing list
> > Bacula-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/bacula-users
>
> --
> Arno Lehmann
> IT-Service Lehmann
> www.its-lehmann.de
>
> -
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems?  Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >>  http://get.splunk.com/
> ___
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
>
-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-user

Re: [Bacula-users] fileset

2007-08-08 Thread Alexandre Chapellon
Oops I forgot to paste the error message wich can be usefull for others:

Fatal error:
c:\cygwin\home\kern\bacula\k\src\win32\filed\../../filed/backup.c:494
Network send error to SD. ERR=Input/output error
Error: c:\cygwin\home\kern\bacula\k\src\win32\lib\../../lib/bnet.c:393 Write
error sending len to Storage daemon:srvbackup.netadmin.local:9103:
ERR=Input/output error

A famous one isn't it?!

2007/8/8, Alexandre Chapellon <[EMAIL PROTECTED]>:
>
> Just as an information:
>
> - most of my windows 2K clients (with winbacula 1.38.10) didn't like very
> much to have no compression specified at all in the option clause! Going
> back to gzip1 solved the problem!
>
> 2007/8/7, Arno Lehmann <[EMAIL PROTECTED]>:
> >
> > Hi,
> >
> > 07.08.2007 11:48,, Alexandre Chapellon wrote::
> > > Hello,
> > >
> > > I am running bacula on mysite (about 100 servers, with differents OS),
> > > and am quite happy about it.
> > > Recently I changed my filesets to speedup the backup and avoid
> > > compression problem with some files.
> > > What I want is:
> > >
> > >  - not to compress already compressed files (eg: jpg...)
> > >  - not to save at all "useless" files (eg: .ldb access lock files...)
> > >
> > > So I wrote the following fileset:
> >
> > Oh, filesets with exclusions and wildcards... my favourite waste of
> > time in Bacula ;-)
> >
> > Just one hint for now: The options section that matches *first* will
> > be applied, so you should define the options starting with the most
> > specific definitions first.
> >
> > In your case, the first option block could be the one defining the
> > excludes, then the one defining the files not to get compressed -
> > simply omit the compression keyword here - and lastly, as a catch-all
> > for the remaining files, set your defaults including compression.
> >
> > Also note that a fileset change will trigger a new full backup, so
> > before playing around with the options, set "Ignore Fileset Changes",
> > or use the "estimate listing" command to verify your fileset works as
> > it should.
> >
> > Arno
> >
> > > 
> > > FileSet {
> > >   Name = "DataToSave"
> > >   Include {
> > > Options {  ## Normal compression
> > >   signature = MD5  ## for
> > >   compression = GZIP   ## normals files
> > > }
> > > Options {
> > >   signature = MD5  ## list of
> > >   compression = GZIP1  ## extensions
> > >   wildfile = "*.mpg"   ## I would
> > >   wildfile = "*.mpeg"  ## like not to
> > >   wildfile = "*.pdf"   ## be compressed
> > >   wildfile = "*.gz"## ...
> > >   wildfile = "*.tgz"   ## In fact
> > >   wildfile = "*.zip"   ## I use the
> > >   wildfile = "*.rar"   ## lower compression
> > >   wildfile = "*.mdb"   ## level, because
> > >   wildfile = "*.avi"   ## I couldn't
> > >   wildfile = "*.flv"   ## find out
> > >   wildfile = "*.swf"   ## how to
> > >   wildfile = "*.gif"   ## completly disable
> > >   wildfile = "*.png"   ## software compression.
> > >   wildfile = "*.jpg"   ##
> > >   wildfile = "*.jpeg"  ##
> > > }
> > > Options {
> > >   exclude = yes
> > >   wildfile = "*.LDF"   ## list of
> > >   wildfile = "*.MDF"   ## extensions I want to
> > >   wildfile = "*.ldb"   ## exclude completly
> > > }
> > >   File = "d:/PathToSave"   ## The place I want to backup
> > >   }
> > > }
> > > 
> > >
> > > Can anyone can take a look at it and tell me if the will behave as
> > > expected.
> > >
> > > thanks guys! (and girls :p)
> > >
> > >
> > >
> > 
> > >
> > >
> > -
> > > This SF.net email is sponsored by: Splunk Inc.
> > > Still grepping through log files to find problems?  Stop.
> > > Now Search log events and configuration files using AJAX and a
> > browser.
> > > Download your FREE copy of Splunk now >>  http://get.splunk.com/
> > >
> > >
> > >
> > 
> > >
> > > ___
> > > Bacula-users mailing list
> > > Bacula-users@lists.sourceforge.net
> > > https://lists.sourceforge.net/lists/listinfo/bacula-users
> >
> > --
> > Arno Lehmann
> > IT-Service Lehmann
> > www.its-lehmann.de
> >
> > -
> >
> > This SF.net email is sponsored by: Splunk Inc.
> > Still grepping through log files to find problems?  Stop.
> > Now Search log events and configuration files using AJAX and a browser.
> > Download your FREE copy of S

Re: [Bacula-users] fileset

2007-08-08 Thread Arno Lehmann
Hi,

08.08.2007 09:50,, Alexandre Chapellon wrote::
> Oops I forgot to paste the error message wich can be usefull for others:
> 
> Fatal error: 
> c:\cygwin\home\kern\bacula\k\src\win32\filed\../../filed/backup.c:494 
> Network send error to SD. ERR=Input/output error
> Error: c:\cygwin\home\kern\bacula\k\src\win32\lib\../../lib/bnet.c:393 
> Write error sending len to Storage daemon:srvbackup.netadmin.local:9103: 
> ERR=Input/output error
> 
> A famous one isn't it?!

Yeah... I suppose that error message is some sort of catch-all for a 
number of other problems. In this case, I really wonder how no 
compression could lead to network problems.

Also, I know for sure there are many windows FDs running without 
compression without these problems.

It might be a problem with the options parser, but I'm quite sure that 
that one existed in some 2.0 version and only with signature=SHA1...

Perhaps the FD is sending data too fast for the network - I know that 
this should be absolutely impossible, but as your problem client runs 
windows I would even believe that ;-)

Arno

> 2007/8/8, Alexandre Chapellon <[EMAIL PROTECTED] 
> >:
> 
> Just as an information:
> 
> - most of my windows 2K clients (with winbacula 1.38.10) didn't like
> very much to have no compression specified at all in the option
> clause! Going back to gzip1 solved the problem!
> 
> 2007/8/7, Arno Lehmann <[EMAIL PROTECTED] >:
> 
> Hi,
> 
> 07.08.2007 11:48,, Alexandre Chapellon wrote::
> >  Hello,
> >
> >  I am running bacula on mysite (about 100 servers, with
> differents OS),
> >  and am quite happy about it.
> >  Recently I changed my filesets to speedup the backup and avoid
> >  compression problem with some files.
> >  What I want is:
> >
> >  - not to compress already compressed files (eg: jpg...)
> >  - not to save at all "useless" files (eg: .ldb access lock
> files...)
> >
> >  So I wrote the following fileset:
> 
> Oh, filesets with exclusions and wildcards... my favourite waste of
> time in Bacula ;-)
> 
> Just one hint for now: The options section that matches *first*
> will
> be applied, so you should define the options starting with the most
> specific definitions first.
> 
> In your case, the first option block could be the one defining the
> excludes, then the one defining the files not to get compressed -
> simply omit the compression keyword here - and lastly, as a
> catch-all
> for the remaining files, set your defaults including compression.
> 
> Also note that a fileset change will trigger a new full backup, so
> before playing around with the options, set "Ignore Fileset
> Changes",
> or use the "estimate listing" command to verify your fileset
> works as
> it should.
> 
> Arno
> 
> >
> 
> >  FileSet {
> >   Name = "DataToSave"
> >   Include {
> > Options {  ## Normal compression
> >   signature = MD5  ## for
> >   compression = GZIP   ## normals files
> > }
> > Options {
> >   signature = MD5  ## list of
> >   compression = GZIP1  ## extensions
> >   wildfile = "*.mpg"   ## I would
> >   wildfile = "*.mpeg"  ## like not to
> >   wildfile = "*.pdf"   ## be compressed
> >   wildfile = "*.gz"## ...
> >   wildfile = "*.tgz"   ## In fact
> >   wildfile = "*.zip"   ## I use the
> >   wildfile = "*.rar"   ## lower compression
> >   wildfile = "*.mdb"   ## level, because
> >   wildfile = "*.avi"   ## I couldn't
> >   wildfile = "*.flv"   ## find out
> >   wildfile = "*.swf"   ## how to
> >   wildfile = "*.gif"   ## completly disable
> >   wildfile = "*.png"   ## software compression.
> >   wildfile = "*.jpg"   ##
> >   wildfile = "*.jpeg"  ##
> > }
> > Options {
> >   exclude = yes
> >   wildfile = "*.LDF"   ## list of
> >   wildfile = "*.MDF"   ## extensions I want to
> >   wildfile = "*.ldb"   ## exclude completly
> > }
> >   File = "d:/PathToSave"   ## The place I want to backup
> >   }
> >  }
> >
> 
> 
> >
>   

Re: [Bacula-users] fileset

2007-08-08 Thread Dimitrios
On Tue, 07 Aug 2007 12:11:55 +0200 Julien <[EMAIL PROTECTED]> wrote:

> I would change the order because of the "first match" rule :

thats strange, because the default configuration of bacula has the Exclude 
section after the Include section:

FileSet {
  Name = "Full Set"
  Include {
Options {
  signature = MD5
}
  }
  Exclude {
File = /proc
File = /tmp
File = /.journal
File = /.fsck
  }
}

is that wrong then?

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] fileset

2007-08-08 Thread Alexandre Chapellon
The exclude method you use is the "Exclude" directive...
I use an "exclude = yes" in an "Options" directive.
I guess that's where the difference is
Anybody to confirm?

2007/8/8, Dimitrios <[EMAIL PROTECTED]>:
>
> On Tue, 07 Aug 2007 12:11:55 +0200 Julien <[EMAIL PROTECTED]> wrote:
>
> > I would change the order because of the "first match" rule :
>
> thats strange, because the default configuration of bacula has the Exclude
> section after the Include section:
>
> FileSet {
>   Name = "Full Set"
>   Include {
> Options {
>   signature = MD5
> }
>   }
>   Exclude {
> File = /proc
> File = /tmp
> File = /.journal
> File = /.fsck
>   }
> }
>
> is that wrong then?
>
> -
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems?  Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >>  http://get.splunk.com/
> ___
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
>
-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] fileset

2007-08-08 Thread Arno Lehmann
Hello,

08.08.2007 17:06,, Alexandre Chapellon wrote::
> The exclude method you use is the "Exclude" directive...
> I use an "exclude = yes" in an "Options" directive.
> I guess that's where the difference is
> Anybody to confirm?

Confirm.

> 2007/8/8, Dimitrios <[EMAIL PROTECTED] >:
> 
> On Tue, 07 Aug 2007 12:11:55 +0200 Julien <[EMAIL PROTECTED]
> > wrote:
> 
>  > I would change the order because of the "first match" rule :
> 
> thats strange, because the default configuration of bacula has the
> Exclude section after the Include section:
> 
> FileSet {
>   Name = "Full Set"
>   Include {
> Options {
>   signature = MD5
> }
>   }
>   Exclude {
> File = /proc
> File = /tmp
> File = /.journal
> File = /.fsck
>   }
> }
> 
> is that wrong then?

No, but include with options to actually exclude is different to an 
exclude section.

I should have made that more clear in my original answer...

Arno

> -
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems?  Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >>  http://get.splunk.com/
> ___
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> 
> https://lists.sourceforge.net/lists/listinfo/bacula-users
> 
> 
> 
> 
> 
> 
> -
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems?  Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >>  http://get.splunk.com/
> 
> 
> 
> 
> ___
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users

-- 
Arno Lehmann
IT-Service Lehmann
www.its-lehmann.de

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] fileset

2007-08-08 Thread Dimitrios
On Wed, 08 Aug 2007 17:45:26 +0200 Arno Lehmann <[EMAIL PROTECTED]> wrote:

> No, but include with options to actually exclude is different to an 
> exclude section.

ah that clears it up, thank you!

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] FileSet Exclude

2005-03-15 Thread Kai Matla
Hello!

> Exclude {
>
>File = "/Dokumente und
> Einstellungen/*/Anwendungsdaten/*/Profiles/*/*/Cache"
> ...

Try:

File = "C:/Dokumente und
 Einstellungen/*/Anwendungsdaten/*/Profiles/*/*/Cache"
...


I had the same problem, found no documentation on it, but this works for me 
(quite similar setup like yours).

Greets from Germany ;-)
Kai Matla
__
Verschicken Sie romantische, coole und witzige Bilder per SMS!
Jetzt bei WEB.DE FreeMail: http://f.web.de/?mc=021193



---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] FileSet question

2005-10-25 Thread Martin Simmons
> On Mon, 24 Oct 2005 11:07:09 +0100 (BST), "Dominic Marks" <[EMAIL 
> PROTECTED]> said:

  Dominic> From my reading of the documentation for FileSet's it would seem 
that the
  Dominic> following would not be valid:

  Dominic> "Any file-list item preceded by a less-than sign (<) will be taken 
to be a
  Dominic> file. This file will be read on the Director's machine at the time 
the Job
  Dominic> starts, and the data will be assumed to be a list of directories or 
files,
  Dominic> one per line, to be included. The names should start in column 1 and
  Dominic> should not be quoted even if they contain spaces. This feature 
allows you
  Dominic> to modify the external file and change what will be saved without 
stopping
  Dominic> and restarting Bacula as would be necessary if using the @ modifier 
noted
  Dominic> above."

  Dominic> But what about WildFile/WildDir?

  Dominic> FileSet {
  Dominic>  Name = "Desktop Set"
  Dominic>  Include {
  Dominic>   Options {
  Dominic>Signature = MD5
  Dominic>Compression = GZIP
  Dominic>Sparse = yes
  Dominic>Exclude = yes
  Dominic>IgnoreCase = yes

  Dominic>WildDir = "WildFile = "   }

  Dominic>   File = "C:/"
  Dominic>  }
  Dominic> }

  Dominic> This would be very useful since at the moment if you are backing up a
  Dominic> large number of Wnidows machines (as I am) and they all need slightly
  Dominic> different filesets (as these do) you end up duplicating enormous 
portions
  Dominic> of the same FileSet, the excludes bit is the most common - not the 
files
  Dominic> part, which makes the administration a big pain.

  Dominic> My exclude-dirs and exclude-files take up about 150 lines and it is
  Dominic> repeated again and again. Is there any way to achieve this, or if 
not can
  Dominic> this be added as a feature request?

Look at the doc for  where it says "Any name preceded by an at-sign
(@)...".  This is actually works anywhere in the config file, so you can
create a file containing lots of WildFile lines and use @ to splice this into
the config multiple times.  A slight difference between that and using
less-than is that you'll need to reload the config if the @ file is changed.

__Martin


---
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Fileset change

2012-03-15 Thread Uwe Schuerkamp
On Wed, Mar 14, 2012 at 03:38:29PM +0100, Uwe Schuerkamp wrote:
> Hi folks,
> 
> I'm running bacula 5.2.6 compiled from source. I'm wondering if adding
> the line 
> 
> compression = GZIP1
> 

Sorry to follow up on my own posting, just wanted to report that
introducing compression apparently doesn't trigger a full backup. 

All the best, 

Uwe 



--
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] FileSet quirks

2007-02-06 Thread Martin Simmons
> On Mon, 5 Feb 2007 16:28:24 +0100, Stephan Ebelt said:
> 
> Hello,
> 
> back in 1.38.11 I wrote this fileset which appeared to work quite nice.
> 
> FileSet {
>   Name = "data-users-media"
> 
>   Include {
>   Options {
> signature = md5
> wilddir  = "/home/*/Movies"
> wilddir  = "/home/*/Music"
> wilddir  = "/home/*/Pictures"
>   }
> 
>   # I do not want backup files
>   Options {
> wildfile = "*~"
> Exclude = yes
>   }
>   }
> }
> 
> Now, in bacula 2.0.1 it does not work anymore. Zero directories are selected. 
> Apparently this is because its missing a 'File = /home' directive in the 
> Include block.
> 
> Adding this will select *all* files/dirs in /home which means I must somehow 
> exclude everything except the three directories I want. But I do not know 
> what to exclude exactly. There is just too much stuff in multiple homes on 
> multiple computers... so I try:
> 
> FileSet {
>   Name = "data-users-media"
> 
>   Include {
> 
>   Options {
> signature = md5
> wilddir  = "/home/*/Movies"
> wilddir  = "/home/*/Music"
> wilddir  = "/home/*/Pictures"
>   }
> 
>   Options {
> wild = "/home*"
> Exclude = yes
>   }
> 
>   File = /home
>   }
> }
> 
> (omitting the backup files for now)
> 
> no luck. Only /home itself is selected. Nothing underneath. Also 
> experimenting 
> with wilddir and wildfile in the exclude block does not take me any further.
> 
> Now I am trying to write a more-or-less complicated regexp to revert-match 
> the 
> three dirs in the Exclude block at once. Something like:
> 
>   regexdir = "/home/.*/[^Movies|^Music|^Pictures]/.*"
> 
> (though, this doesnt work yet)

No, you can't use [] like that in a regexp -- it is for matching single
characters, not strings.  There is no "not" operator in regexps.


> Somehow I am stuck here. Can someone see a more simple approach to get _only_ 
> those three directories from each home in the system? Or do I have to write a 
> script?

This does most of what you want:

FileSet {
  Name = "data-users-media"

  Include {

  Options {
signature = md5
wilddir  = "/home/*/Movies"
wild = "/home/*/Movies/*"
wilddir  = "/home/*/Music"
wild = "/home/*/Music/*"
wilddir  = "/home/*/Pictures"
wild = "/home/*/Pictures/*"
  }

  Options {
wild = "/home/*/*"
Exclude = yes
  }

  File = /home
  }
}

The only problem is that it also includes everything directly in /home, but
that may not matter.

__Martin

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] FileSet quirks

2007-02-06 Thread Kern Sibbald
On Tuesday 06 February 2007 20:28, Martin Simmons wrote:
> > On Mon, 5 Feb 2007 16:28:24 +0100, Stephan Ebelt said:
> >
> > Hello,
> >
> > back in 1.38.11 I wrote this fileset which appeared to work quite nice.
> >
> > FileSet {
> >   Name = "data-users-media"
> >
> >   Include {
> >   Options {
> > signature = md5
> > wilddir  = "/home/*/Movies"
> > wilddir  = "/home/*/Music"
> > wilddir  = "/home/*/Pictures"
> >   }
> >
> >   # I do not want backup files
> >   Options {
> > wildfile = "*~"
> > Exclude = yes
> >   }
> >   }
> > }
> >
> > Now, in bacula 2.0.1 it does not work anymore. Zero directories are
> > selected. Apparently this is because its missing a 'File = /home'
> > directive in the Include block.
> >
> > Adding this will select *all* files/dirs in /home which means I must
> > somehow exclude everything except the three directories I want. But I do
> > not know what to exclude exactly. There is just too much stuff in
> > multiple homes on multiple computers... so I try:
> >
> > FileSet {
> >   Name = "data-users-media"
> >
> >   Include {
> >
> >   Options {
> > signature = md5
> > wilddir  = "/home/*/Movies"
> > wilddir  = "/home/*/Music"
> > wilddir  = "/home/*/Pictures"
> >   }
> >
> >   Options {
> > wild = "/home*"
> > Exclude = yes
> >   }
> >
> >   File = /home
> >   }
> > }
> >
> > (omitting the backup files for now)
> >
> > no luck. Only /home itself is selected. Nothing underneath. Also
> > experimenting with wilddir and wildfile in the exclude block does not
> > take me any further.
> >
> > Now I am trying to write a more-or-less complicated regexp to
> > revert-match the three dirs in the Exclude block at once. Something like:
> >
> > regexdir = "/home/.*/[^Movies|^Music|^Pictures]/.*"
> >
> > (though, this doesnt work yet)
>
> No, you can't use [] like that in a regexp -- it is for matching single
> characters, not strings.  There is no "not" operator in regexps.
>
> > Somehow I am stuck here. Can someone see a more simple approach to get
> > _only_ those three directories from each home in the system? Or do I have
> > to write a script?
>
> This does most of what you want:
>
> FileSet {
>   Name = "data-users-media"
>
>   Include {
>
>   Options {
> signature = md5
> wilddir  = "/home/*/Movies"
> wild = "/home/*/Movies/*"
> wilddir  = "/home/*/Music"
> wild = "/home/*/Music/*"
> wilddir  = "/home/*/Pictures"
> wild = "/home/*/Pictures/*"
>   }
>
>   Options {
> wild = "/home/*/*"
> Exclude = yes
>   }
>
>   File = /home
>   }
> }
>
> The only problem is that it also includes everything directly in /home, but
> that may not matter.

By the way, I am thinking of "removing" the default include all, so that in a 
simple case, absolutely nothing will be included unless there is an explicit 
Options { }  that includes it.  That would eliminate most of the confusions 
with exclusion.  However, that would be non-compatible.

>
> __Martin
>
> -
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job
> easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache
> Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> ___
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] FileSet quirks

2007-02-06 Thread Martin Simmons
> On Tue, 6 Feb 2007 21:14:52 +0100, Kern Sibbald said:
> 
> On Tuesday 06 February 2007 20:28, Martin Simmons wrote:
> > > On Mon, 5 Feb 2007 16:28:24 +0100, Stephan Ebelt said:
> > >
> > > Hello,
> > >
> > > back in 1.38.11 I wrote this fileset which appeared to work quite nice.
> > >
> > > FileSet {
> > >   Name = "data-users-media"
> > >
> > >   Include {
> > >   Options {
> > > signature = md5
> > > wilddir  = "/home/*/Movies"
> > > wilddir  = "/home/*/Music"
> > > wilddir  = "/home/*/Pictures"
> > >   }
> > >
> > >   # I do not want backup files
> > >   Options {
> > > wildfile = "*~"
> > > Exclude = yes
> > >   }
> > >   }
> > > }
> > >
> > > Now, in bacula 2.0.1 it does not work anymore. Zero directories are
> > > selected. Apparently this is because its missing a 'File = /home'
> > > directive in the Include block.
> > >
> > > Adding this will select *all* files/dirs in /home which means I must
> > > somehow exclude everything except the three directories I want. But I do
> > > not know what to exclude exactly. There is just too much stuff in
> > > multiple homes on multiple computers... so I try:
> > >
> > > FileSet {
> > >   Name = "data-users-media"
> > >
> > >   Include {
> > >
> > >   Options {
> > > signature = md5
> > > wilddir  = "/home/*/Movies"
> > > wilddir  = "/home/*/Music"
> > > wilddir  = "/home/*/Pictures"
> > >   }
> > >
> > >   Options {
> > > wild = "/home*"
> > > Exclude = yes
> > >   }
> > >
> > >   File = /home
> > >   }
> > > }
> > >
> > > (omitting the backup files for now)
> > >
> > > no luck. Only /home itself is selected. Nothing underneath. Also
> > > experimenting with wilddir and wildfile in the exclude block does not
> > > take me any further.
> > >
> > > Now I am trying to write a more-or-less complicated regexp to
> > > revert-match the three dirs in the Exclude block at once. Something like:
> > >
> > >   regexdir = "/home/.*/[^Movies|^Music|^Pictures]/.*"
> > >
> > > (though, this doesnt work yet)
> >
> > No, you can't use [] like that in a regexp -- it is for matching single
> > characters, not strings.  There is no "not" operator in regexps.
> >
> > > Somehow I am stuck here. Can someone see a more simple approach to get
> > > _only_ those three directories from each home in the system? Or do I have
> > > to write a script?
> >
> > This does most of what you want:
> >
> > FileSet {
> >   Name = "data-users-media"
> >
> >   Include {
> >
> >   Options {
> > signature = md5
> > wilddir  = "/home/*/Movies"
> > wild = "/home/*/Movies/*"
> > wilddir  = "/home/*/Music"
> > wild = "/home/*/Music/*"
> > wilddir  = "/home/*/Pictures"
> > wild = "/home/*/Pictures/*"
> >   }
> >
> >   Options {
> > wild = "/home/*/*"
> > Exclude = yes
> >   }
> >
> >   File = /home
> >   }
> > }
> >
> > The only problem is that it also includes everything directly in /home, but
> > that may not matter.
> 
> By the way, I am thinking of "removing" the default include all, so that in a 
> simple case, absolutely nothing will be included unless there is an explicit 
> Options { }  that includes it.  That would eliminate most of the confusions 
> with exclusion.  However, that would be non-compatible.

It might be better to make it an error, since otherwise it will be number 1 in
the frequently annoying questions chart forever :-)

Won't it look a little odd though?  You'll need Options wild= as well as File=
for simple things like, for example, setting the signature type on all files.

The problem above is that you can't easily exclude unknown things at a
directory level while including some known things at a deeper level.  How
about allowing partial matches in the File= line?  E.g. something like

File = wild /home/*/Movies

__Martin

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] FileSet quirks

2007-02-07 Thread Ralf Ertzinger
Hi.

On Tue, 6 Feb 2007 19:28:40 GMT, Martin Simmons wrote:

> No, you can't use [] like that in a regexp -- it is for matching
> single characters, not strings.  There is no "not" operator in
> regexps.

Actually there is, if you happen to use perl compatible REs (if bacula
does that I do not know).

regexdir = "/home/[^/]+/(?!Movies|Music|Pictures])/.*"


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] FileSet quirks

2007-02-07 Thread Stephan Ebelt
Hello,

On Tuesday 06 February 2007 20:28, Martin Simmons wrote:
> > regexdir = "/home/.*/[^Movies|^Music|^Pictures]/.*"
> >
> > (though, this doesnt work yet)
>
> No, you can't use [] like that in a regexp -- it is for matching single
> characters, not strings.  There is no "not" operator in regexps.

there is. Ie this works

egrep "/home/.*/[^Pictures]" pathlist.file

the only problem is it would also _not_ match /home/user/iPctures because of 
the nature of []... I have not tried this with bregex because I prefer your 
solution below.

> > Somehow I am stuck here. Can someone see a more simple approach to get
> > _only_ those three directories from each home in the system? Or do I have
> > to write a script?
>
> This does most of what you want:
>
> FileSet {
>   Name = "data-users-media"
>
>   Include {
>
>   Options {
> signature = md5
> wilddir  = "/home/*/Movies"
> wild = "/home/*/Movies/*"
> wilddir  = "/home/*/Music"
> wild = "/home/*/Music/*"
> wilddir  = "/home/*/Pictures"
> wild = "/home/*/Pictures/*"
>   }
>
>   Options {
> wild = "/home/*/*"
> Exclude = yes
>   }
>
>   File = /home
>   }
> }

this does the trick. Thanks a lot.

> The only problem is that it also includes everything directly in /home, but
> that may not matter.

not that I can see. The wild = "/home/*/*" directive also seems to 
match "/home/*" for a reason that I do not quite understand.

Adding wilddir = "/home/*" to the include block selects all dirs directly 
in /home, which indicates that everything was selected by the File = /home 
directive... also removing the exclude block selects everything (both tested 
with estimate).

So "/home/*" must be dropped in the "/home/*/*" match IMHO.

Stephan

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] FileSet quirks

2007-02-07 Thread Martin Simmons
> On Wed, 7 Feb 2007 12:18:09 +0100, Stephan Ebelt said:
> 
> Hello,
> 
> On Tuesday 06 February 2007 20:28, Martin Simmons wrote:
> > >   regexdir = "/home/.*/[^Movies|^Music|^Pictures]/.*"
> > >
> > > (though, this doesnt work yet)
> >
> > No, you can't use [] like that in a regexp -- it is for matching single
> > characters, not strings.  There is no "not" operator in regexps.
> 
> there is. Ie this works
> 
>   egrep "/home/.*/[^Pictures]" pathlist.file
> 
> the only problem is it would also _not_ match /home/user/iPctures because of 
> the nature of []... I have not tried this with bregex because I prefer your 
> solution below.

Right, and /home/user/Plausible, /home/user/impossible etc.  Anything
beginning with P, i, c, etc will behave the same, which is almost certainly
not wanted.


> > > Somehow I am stuck here. Can someone see a more simple approach to get
> > > _only_ those three directories from each home in the system? Or do I have
> > > to write a script?
> >
> > This does most of what you want:
> >
> > FileSet {
> >   Name = "data-users-media"
> >
> >   Include {
> >
> >   Options {
> > signature = md5
> > wilddir  = "/home/*/Movies"
> > wild = "/home/*/Movies/*"
> > wilddir  = "/home/*/Music"
> > wild = "/home/*/Music/*"
> > wilddir  = "/home/*/Pictures"
> > wild = "/home/*/Pictures/*"
> >   }
> >
> >   Options {
> > wild = "/home/*/*"
> > Exclude = yes
> >   }
> >
> >   File = /home
> >   }
> > }
> 
> this does the trick. Thanks a lot.
> 
> > The only problem is that it also includes everything directly in /home, but
> > that may not matter.
> 
> not that I can see. The wild = "/home/*/*" directive also seems to 
> match "/home/*" for a reason that I do not quite understand.

That's not what happens for me -- e.g. if a file (not directory) called
/home/bogus exists then it will be backed up, which indicates that it does not
match /home/*/* (as expected).


> Adding wilddir = "/home/*" to the include block selects all dirs directly 
> in /home, which indicates that everything was selected by the File = /home 
> directive... also removing the exclude block selects everything (both tested 
> with estimate).

Yes, adding wilddir = "/home/*" will recursively match all dirs (but not
files) underneath /home.

__Martin

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Fileset help

2006-02-13 Thread Martin Simmons
> On Sat, 11 Feb 2006 22:32:24 -0800, "Mike" <[EMAIL PROTECTED]> said:
> 
> I'm trying to create a FileSet config for one of our FreeBSD jail host
> machines, and I'm having a little trouble getting it just right.
> 
> I have a directory (/u/jail) which has serveral instances of a FreeBSD jail
> (basically a virtual server), all under different directories (using their
> hostnames)
> 
> So,
> 
> /u/jail/hostname1/
> /u/jail/hostname2/
> 
> etc,
> 
> We add new hosts to these quite often, so I'd rather not have to specify
> each jail hostname by themselves, but I only want to backup certain
> directories under the jails.
> 
> The goals is to backup:
> 
> /u/jail/*/etc
> /u/jail/*/usr/local
> /u/jail/*/u
> 
> but exclude
> 
> /u/jail/*/u/logs
> 
> I attempted to use this- not sure if it's right or not, but it looks like it
> was still trying to backup something outside of my config, so I'm guessing
> it's not.
> 
> --snip--
> 
> FileSet {
> Name = cust
> Include {
> Options {
> Signature = MD5;
> onefs = no;
> 
> wilddir = "/u/jail/*/etc"
> wilddir = "/u/jail/*/usr/local"
> wilddir = "/u/jail/*/u"
> }
> Options {
> wilddir = "/u/jail/*/u/logs"
> Exclude = yes
> }
> 
> File = /etc
> File = /usr/local
> File = /u/home
> 
> File = /u/jail
> }
> }
> 
> --snip--
> 
> This is bacula-1.38.2 on FreeBSD 5.4
> 
> Any help would be appreciated.

I think there are two problems:

1) Bacula stops looking for Options clauses as soon as one with a pattern
   matches, so "/u/jail/*/u" overrides "/u/jail/*/u/logs" and the logs will be
   included.

2) Filenames that match none of the patterns will match the implicit default
   Options clause and still be allowed (e.g. /u/jail/*/bin).

__Martin


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] fileset utility?

2020-02-06 Thread Mike Eggleston
I forgot about “estimate”. Thanks. Its been six years since I’ve used Bacula.

Thanks,
Mike

From: Russell Kackley 
Sent: Thursday, February 06, 2020 2:46 PM
To: Mike Eggleston 
Cc: Bacula-users@lists.sourceforge.net
Subject: Re: [Bacula-users] fileset utility?

Take a look at the "estimate" command in the Bacula bconsole program. When used 
with the "listing" argument, all the files to be backed up will be listed.

https://www.bacula.org/9.4.x-manuals/en/console/Bacula_Console.html#SECTION0025<https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.bacula.org%2F9.4.x-manuals%2Fen%2Fconsole%2FBacula_Console.html%23SECTION0025&data=02%7C01%7Cmike.eggleston%40firstcash.com%7Cdbb8b39f9e054217b8f508d7ab45905e%7C39d7f83a1713407c8a6b8169e5f65393%7C1%7C0%7C637166187600619153&sdata=pSqofsvzpytPcq6okWIiNXscjl9hXD%2F%2F787Clm7aXWQ%3D&reserved=0>


On Thu, Feb 6, 2020 at 10:37 AM Mike Eggleston 
mailto:mike.eggles...@firstcash.com>> wrote:
Is there a program that will read File Set stanzas and get a listing of the 
files on a client and print what is included and excluded before backing up so 
that tweaking of the file set can happen?

Thanks,
Mike Eggleston

___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net<mailto:Bacula-users@lists.sourceforge.net>
https://lists.sourceforge.net/lists/listinfo/bacula-users<https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.sourceforge.net%2Flists%2Flistinfo%2Fbacula-users&data=02%7C01%7Cmike.eggleston%40firstcash.com%7Cdbb8b39f9e054217b8f508d7ab45905e%7C39d7f83a1713407c8a6b8169e5f65393%7C1%7C0%7C637166187600629149&sdata=VY9FVsqRh9cSsUels4GCWc24nMMBlH%2FdWAn7s04WGGg%3D&reserved=0>


--
Russell Kackley
Subaru Telescope
Hilo, Hawaii
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] fileset utility?

2020-02-06 Thread Russell Kackley
Take a look at the "estimate" command in the Bacula bconsole program. When
used with the "listing" argument, all the files to be backed up will be
listed.

https://www.bacula.org/9.4.x-manuals/en/console/Bacula_Console.html#SECTION0025


On Thu, Feb 6, 2020 at 10:37 AM Mike Eggleston 
wrote:

> Is there a program that will read File Set stanzas and get a listing of
> the files on a client and print what is included and excluded before
> backing up so that tweaking of the file set can happen?
>
>
>
> Thanks,
>
> Mike Eggleston
>
>
> ___
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
>


-- 
Russell Kackley
Subaru Telescope
Hilo, Hawaii
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] fileset utility?

2020-02-07 Thread Philippe Chauvat via Bacula-users
Hi Mike,

You might also find the @output command very useful.

Cheers

Philippe

Le 06/02/2020 à 22:07, Mike Eggleston a écrit :
>
> I forgot about “estimate”. Thanks. Its been six years since I’ve used
> Bacula.
>
>  
>
> Thanks,
>
> Mike
>
>  
>
> *From:*Russell Kackley 
> *Sent:* Thursday, February 06, 2020 2:46 PM
> *To:* Mike Eggleston 
> *Cc:* Bacula-users@lists.sourceforge.net
> *Subject:* Re: [Bacula-users] fileset utility?
>
>  
>
> Take a look at the "estimate" command in the Bacula bconsole program.
> When used with the "listing" argument, all the files to be backed up
> will be listed.
>
>  
>
> https://www.bacula.org/9.4.x-manuals/en/console/Bacula_Console.html#SECTION0025
> <https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.bacula.org%2F9.4.x-manuals%2Fen%2Fconsole%2FBacula_Console.html%23SECTION0025&data=02%7C01%7Cmike.eggleston%40firstcash.com%7Cdbb8b39f9e054217b8f508d7ab45905e%7C39d7f83a1713407c8a6b8169e5f65393%7C1%7C0%7C637166187600619153&sdata=pSqofsvzpytPcq6okWIiNXscjl9hXD%2F%2F787Clm7aXWQ%3D&reserved=0>
>
>  
>
>  
>
> On Thu, Feb 6, 2020 at 10:37 AM Mike Eggleston
> mailto:mike.eggles...@firstcash.com>>
> wrote:
>
> Is there a program that will read File Set stanzas and get a
> listing of the files on a client and print what is included and
> excluded before backing up so that tweaking of the file set can
> happen?
>
>  
>
> Thanks,
>
> Mike Eggleston
>
>  
>
> ___
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> <mailto:Bacula-users@lists.sourceforge.net>
> https://lists.sourceforge.net/lists/listinfo/bacula-users
> 
> <https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.sourceforge.net%2Flists%2Flistinfo%2Fbacula-users&data=02%7C01%7Cmike.eggleston%40firstcash.com%7Cdbb8b39f9e054217b8f508d7ab45905e%7C39d7f83a1713407c8a6b8169e5f65393%7C1%7C0%7C637166187600629149&sdata=VY9FVsqRh9cSsUels4GCWc24nMMBlH%2FdWAn7s04WGGg%3D&reserved=0>
>
>
>
> -- 
>
> Russell Kackley
> Subaru Telescope
> Hilo, Hawaii
>
>
>
> ___
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] fileset question

2009-05-14 Thread Jeff Dickens

Here it is:

FileSet {
   Name = "XP_WS3"
   Include {
   Options {
   exclude = yes
   RegEx = ".*\.lnk"
   RegEx = ".*\.mp3"
   RegEx = ".*\.wma"
   }
   Options {
   signature = MD5
   compression=GZIP
   WildDir  = "C:/Documents and Settings/*/My 
Documents"
   Wild = "C:/Documents and Settings/*/My 
Documents/*"

   WildDir  = "C:/Documents and Settings/*/Desktop"
   Wild = "C:/Documents and Settings/*/Desktop/*"
   RegExDir = "C:/Documents and Settings/[^/]+$"
   }
   Options {
   exclude = yes
   Wild = "C:/Documents and Settings/*"
   }
   File = "C:/Documents and Settings"
   }
}

Thanks to those that responded to Robin Bonin's thread about a year ago, 
in particular Martin Simmons.


I have two follow-up questions:

What exactly is the RegExDir directive doing?  I understand what the 
regex is doing, but how does that help here, since all the WildDirs are 
getting "ored" together.. what does it match that the others don't?


Secondly, does anyone else agree that it would be desirable to have the 
fileset look more like this:


Include {
  Rational_Filespec: = "C:/Documents and Settings/*/My Documents"
  Rational_Filespec: = "C:/Documents and Settings/*/Desktop"
}

instead of the dog's breakfast?



Jeff Dickens wrote:

Is there any way to accomplish what I'm trying to do here ?

FileSet {
Name = XP_WS2
Enable VSS = yes
Include {
 Options {
  signature = MD5
  compression = GZIP
  IgnoreCase = yes
  Wild = "C:/Documents and Settings/*/Desktop/*"
  Wild = "C:/Documents and Settings/*/Documents/*"
 }
 Options {
  Exclude = yes
  Wild = "C:/Documents and Settings/*"
 }
 File = "C:/Documents and Settings"
}
}


__
 Scanned by Google Message Security  - Leaving Seaman Paper
--
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-com



___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users
  
--
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-com___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] fileset question

2009-05-14 Thread Jeff Dickens
Maybe if I had the answers to those questions I would understand why 
this fileset is totally non-functional.  It backs up just the top level 
directories under "Documents and Settings".


FileSet {
   Name = "XP_WS4"
   Include {
   Options {
   exclude = yes
   RegEx = ".*\.lnk"
   RegEx = ".*\.mp3"
   RegEx = ".*\.wma"
   }
   Options {
   signature = MD5
   compression=GZIP
   WildDir  = "C:/Documents and 
Settings/*/Application Data/Thunderbird"
   WildDir  = "C:/Documents and 
Settings/*/Application Data/Thunderbird/*"

   RegExDir = "C:/Documents and Settings/[^/]+$"
   }
   Options {
   exclude = yes
   Wild = "C:/Documents and Settings/*"
   }
   File = "C:/Documents and Settings"
   }
}


Jeff Dickens wrote:

Here it is:

FileSet {
Name = "XP_WS3"
Include {
Options {
exclude = yes
RegEx = ".*\.lnk"
RegEx = ".*\.mp3"
RegEx = ".*\.wma"
}
Options {
signature = MD5
compression=GZIP
WildDir  = "C:/Documents and Settings/*/My 
Documents"
Wild = "C:/Documents and Settings/*/My 
Documents/*"

WildDir  = "C:/Documents and Settings/*/Desktop"
Wild = "C:/Documents and Settings/*/Desktop/*"
RegExDir = "C:/Documents and Settings/[^/]+$"
}
Options {
exclude = yes
Wild = "C:/Documents and Settings/*"
}
File = "C:/Documents and Settings"
}
}

Thanks to those that responded to Robin Bonin's thread about a year 
ago, in particular Martin Simmons.


I have two follow-up questions:

What exactly is the RegExDir directive doing?  I understand what the 
regex is doing, but how does that help here, since all the WildDirs 
are getting "ored" together.. what does it match that the others don't?


Secondly, does anyone else agree that it would be desirable to have 
the fileset look more like this:


Include {
   Rational_Filespec: = "C:/Documents and Settings/*/My Documents"
   Rational_Filespec: = "C:/Documents and Settings/*/Desktop"
}

instead of the dog's breakfast?



Jeff Dickens wrote:

Is there any way to accomplish what I'm trying to do here ?

FileSet {
Name = XP_WS2
Enable VSS = yes
Include {
 Options {
  signature = MD5
  compression = GZIP
  IgnoreCase = yes
  Wild = "C:/Documents and Settings/*/Desktop/*"
  Wild = "C:/Documents and Settings/*/Documents/*"
 }
 Options {
  Exclude = yes
  Wild = "C:/Documents and Settings/*"
 }
 File = "C:/Documents and Settings"
}
}


__
 Scanned by Google Message Security  - Leaving Seaman Paper
--
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-com



___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users
  



--
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-com



___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users
  


__
 Scanned by Google Message Security  - Leaving Seaman Paper
begin:vcard
fn:Jeff Dickens
n:Dickens;Jeff
org:Seaman Paper Company
email;internet:j...@seamanpaper.com
title:IT Manager
tel;work:978-632-1513 x269
version:2.1
end:vcard

---

Re: [Bacula-users] fileset question

2009-05-15 Thread Bob Hetzel
1) regex is more powerful (and therefore slow) for what you're trying to 
do.  WildFile is probably what you'd want instead.
2) You can't do both an include and an exclude of the same directory.
3) Start with something really basic.  Take out all the exclusions and then 
you're just left with the File line.
Then put all the exclusions in one Options block.  It looks to me like you 
only want to include each user's Desktop, My Documents, and Thunderbird 
folders.  Have you looked at how big it would be to just include everything 
  under Documents and settings with possible temp directory exceptions?

That would be quite a lot simpler... like so...

FileSet {

   Name = "XP_WS4"
   EnableVSS=yes
   Include {
   Options {
   Signature = MD5
  compression=GZIP
  ignore case = yes
  exclude = yes
  WildFile = "*.lnk"
  WildFile = "*.mp3"
  WildFile = "*.wma"
  WildDir = "*/temp"
  WildDir = "*/temporary*"
  }
   File = "C:/Documents and Settings"
}

Also, are you sure you'd want to exclude .lnk files?

Also, after setting this up, you can log the list of files it gets with the 
command
@output /tmp/file-listing.txt
estimate listing job=
@output

I typically look over those lists for stuff to exclude, but mainly I sort 
it by size to exclude big stuff that wouldn't be useful, such as installers 
for acrobat reader, etc.

Bob

> From: Jeff Dickens 
> Subject: Re: [Bacula-users] fileset question
> To: bacula-users 
> Message-ID: <4a0c8c03.6050...@m2.seamanpaper.com>
> Content-Type: text/plain; charset="iso-8859-1"
> 
> Maybe if I had the answers to those questions I would understand why 
> this fileset is totally non-functional.  It backs up just the top level 
> directories under "Documents and Settings".
> 
> FileSet {
> Name = "XP_WS4"
> Include {
> Options {
> exclude = yes
> RegEx = ".*\.lnk"
> RegEx = ".*\.mp3"
> RegEx = ".*\.wma"
> }
> Options {
> signature = MD5
> compression=GZIP
> WildDir  = "C:/Documents and 
> Settings/*/Application Data/Thunderbird"
> WildDir  = "C:/Documents and 
> Settings/*/Application Data/Thunderbird/*"
> RegExDir = "C:/Documents and Settings/[^/]+$"
> }
> Options {
> exclude = yes
> Wild = "C:/Documents and Settings/*"
> }
> File = "C:/Documents and Settings"
> }
> }
> 
> 
> Jeff Dickens wrote:
>> > Here it is:
>> >
>> > FileSet {
>> > Name = "XP_WS3"
>> > Include {
>> > Options {
>> > exclude = yes
>> > RegEx = ".*\.lnk"
>> > RegEx = ".*\.mp3"
>> > RegEx = ".*\.wma"
>> > }
>> > Options {
>> > signature = MD5
>> > compression=GZIP
>> > WildDir  = "C:/Documents and Settings/*/My 
>> > Documents"
>> > Wild = "C:/Documents and Settings/*/My 
>> > Documents/*"
>> > WildDir  = "C:/Documents and Settings/*/Desktop"
>> > Wild = "C:/Documents and Settings/*/Desktop/*"
>> > RegExDir = "C:/Documents and Settings/[^/]+$"
>> > }
>> > Options {
>> > exclude = yes
>> > Wild = "C:/Documents and Settings/*"
>> > }
>> > File = "C:/Documents and Settings"
>> > }
>> > }
>> >
>> > Thanks to those that responded to Robin Bonin's thread about a year 
>> > ago, in particular Martin Simmons.
>> >
>> > I have two follow-up questions:
>> >
>> > What exactly is the RegExDir directive doing?  I understand what the 
>> > regex is doing, but how does that help

Re: [Bacula-users] fileset question

2009-05-15 Thread Martin Simmons
> On Thu, 14 May 2009 16:35:47 -0400, Jeff Dickens said:
> 
> Here it is:
> 
> FileSet {
> Name = "XP_WS3"
> Include {
> Options {
> exclude = yes
> RegEx = ".*\.lnk"
> RegEx = ".*\.mp3"
> RegEx = ".*\.wma"
> }
> Options {
> signature = MD5
> compression=GZIP
> WildDir  = "C:/Documents and Settings/*/My Documents"
> Wild = "C:/Documents and Settings/*/My 
> Documents/*"
> WildDir  = "C:/Documents and Settings/*/Desktop"
> Wild = "C:/Documents and Settings/*/Desktop/*"
> RegExDir = "C:/Documents and Settings/[^/]+$"
> }
> Options {
> exclude = yes
> Wild = "C:/Documents and Settings/*"
> }
> File = "C:/Documents and Settings"
> }
> }
> 
> Thanks to those that responded to Robin Bonin's thread about a year ago, 
> in particular Martin Simmons.
> 
> I have two follow-up questions:
> 
> What exactly is the RegExDir directive doing?  I understand what the 
> regex is doing, but how does that help here, since all the WildDirs are 
> getting "ored" together.. what does it match that the others don't?

The RegExDir matches the directories directly within C:/Documents and
Settings/ but nothing within those directories.  It is needed because none of
the other WildDirs match those directories.

Bacula walks over the filesystem from the File= lines and doesn't descend into
any directory that matches an exclude rule.  The RegExDir clause is needed to
allow it to descend into those directories, otherwise it will not even
consider the Desktop etc subdirectories.


> Secondly, does anyone else agree that it would be desirable to have the 
> fileset look more like this:
> 
> Include {
>Rational_Filespec: = "C:/Documents and Settings/*/My Documents"
>Rational_Filespec: = "C:/Documents and Settings/*/Desktop"
> }
> 
> instead of the dog's breakfast?

Yes, but it is difficult to implement efficiently in more general cases
without scanning the whole filesystem looking for matches.  The current
algorithm allows large parts of the filesystem to be ignored completely.

__Martin

--
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables 
unlimited royalty-free distribution of the report engine 
for externally facing server and web deployment. 
http://p.sf.net/sfu/businessobjects
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] fileset question

2009-05-15 Thread Martin Simmons
> On Thu, 14 May 2009 17:24:19 -0400, Jeff Dickens said:
> 
> Maybe if I had the answers to those questions I would understand why 
> this fileset is totally non-functional.  It backs up just the top level 
> directories under "Documents and Settings".
> 
> FileSet {
> Name = "XP_WS4"
> Include {
> Options {
> exclude = yes
> RegEx = ".*\.lnk"
> RegEx = ".*\.mp3"
> RegEx = ".*\.wma"
> }
> Options {
> signature = MD5
> compression=GZIP
> WildDir  = "C:/Documents and Settings/*/Application 
> Data/Thunderbird"
> WildDir  = "C:/Documents and Settings/*/Application 
> Data/Thunderbird/*"
> RegExDir = "C:/Documents and Settings/[^/]+$"
> }
> Options {
> exclude = yes
> Wild = "C:/Documents and Settings/*"
> }
> File = "C:/Documents and Settings"
> }
> }

It is because you didn't tell it to back up

C:/Documents and Settings/*/Application Data

__Martin

--
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables 
unlimited royalty-free distribution of the report engine 
for externally facing server and web deployment. 
http://p.sf.net/sfu/businessobjects
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] fileset question

2009-05-15 Thread Jeff Dickens
Thanks, Martin, Bob.  I will have another look at it.  Your explanations 
will help.


But I did come up with a neat workaround - since I'm generating client 
configs with m4 macros, I just added a per-client fileset and it seems 
to work perfectly. I just have to pass in the username as well as the 
hostname and password...


Like:

m4 -D CLIENTNAME="marie3" \
   -D CLIENTPASS="44_characters_of_random_printable_ascii" \
   -D USERNAME="marie" \
   /etc/bacula/conf/clients/client2.m4

That gets included into the director config with @|,

Also found that the password better not contain a back-quote or it will 
confuse m4.



Jeff Dickens wrote:

Is there any way to accomplish what I'm trying to do here ?

FileSet {
Name = XP_WS2
Enable VSS = yes
Include {
 Options {
  signature = MD5
  compression = GZIP
  IgnoreCase = yes
  Wild = "C:/Documents and Settings/*/Desktop/*"
  Wild = "C:/Documents and Settings/*/Documents/*"
 }
 Options {
  Exclude = yes
  Wild = "C:/Documents and Settings/*"
 }
 File = "C:/Documents and Settings"
}
}


__
 Scanned by Google Message Security  - Leaving Seaman Paper
--
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-com



___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users
  


__
 Scanned by Google Message Security  - Leaving Seaman Paper
begin:vcard
fn:Jeff Dickens
n:Dickens;Jeff
org:Seaman Paper Company
email;internet:j...@seamanpaper.com
title:IT Manager
tel;work:978-632-1513 x269
version:2.1
end:vcard

--
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables 
unlimited royalty-free distribution of the report engine 
for externally facing server and web deployment. 
http://p.sf.net/sfu/businessobjects___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] FileSet Question...

2011-01-09 Thread Dan Langille
On 1/9/2011 5:28 PM, Kianusch Sayah Karadji wrote:
> Hi,
>
> I need to backup (actually to archive) lots of data.  24 filesystems -
> each filesystem containing 2Mio+ files / 700GB.
>
> I need to save the data only once - since they do not change after they
> are written.
>
> To have better control over what to backup and not to have a single
> backup run for several days, I thought I'd use File="\|/myScript.sh" in
> my fileset definition - and myScript.sh will return the next directory
> to backup - the first time it should return /Directory001, the next time
> /Directory002, ... (This script works already)

Good.

> The question is - will this idea work with bacula? - Will this setup
> always perform Full Backups - (since the Fileset changes on each run) -
> or will Incremental also work?
>
> ... or ... are there other/better solutions for this kind of backup?

I think you should just try it, with a very simple set of files.  The 
answer will become obvious immediately.

Offhand, and based on my doing similar, it is not the list of files 
which determines a new FileSet, is the specification thereof.  In short, 
you'll get a full the first time.

-- 
Dan Langille - http://langille.org/

--
Gaining the trust of online customers is vital for the success of any company
that requires sensitive data to be transmitted over the Web.   Learn how to 
best implement a security strategy that keeps consumers' information secure 
and instills the confidence they need to proceed with transactions.
http://p.sf.net/sfu/oracle-sfdevnl 
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] FileSet Question...

2011-01-10 Thread Martin Simmons
> On Sun, 9 Jan 2011 23:28:31 +0100, Kianusch Sayah Karadji said:
> 
> I need to backup (actually to archive) lots of data.  24 filesystems - each
> filesystem containing 2Mio+ files / 700GB.
> 
> I need to save the data only once - since they do not change after they are
> written.
> 
> To have better control over what to backup and not to have a single backup
> run for several days, I thought I'd use File="\|/myScript.sh" in my fileset
> definition - and myScript.sh will return the next directory to backup - the
> first time it should return /Directory001, the next time /Directory002, ...
> (This script works already)
> 
> The question is - will this idea work with bacula? - Will this setup always
> perform Full Backups - (since the Fileset changes on each run) - or will
> Incremental also work?

Fileset changes are calculated from the config file, not the list of files
returned by the "\|" script, so it will do Incremental too.  Don't use the
"accurate" option though, because it will get confused.


> ... or ... are there other/better solutions for this kind of backup?

You could use a separate fileset and job for each directory.

__Martin

--
Gaining the trust of online customers is vital for the success of any company
that requires sensitive data to be transmitted over the Web.   Learn how to 
best implement a security strategy that keeps consumers' information secure 
and instills the confidence they need to proceed with transactions.
http://p.sf.net/sfu/oracle-sfdevnl 
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] FileSet List

2021-08-18 Thread Marcin Haba
Hello Eric,

Could you show your Apache log: baculum-api-access.log from time when you
are trying to open the fileset?

Also I would like to ask you about providing output from the following
bdirjson command?

bdirjson -c bacula-dir.conf -r Fileset -n YOUR_FILESET_NAME

In place YOUR_FILESET_NAME you need to provide a real fileset name, and
paths for bdirjson and bacula-dir.conf need to be added.

BTW. The latest Baculum version is 11.0.5.4. I encourage to update to this
version.

Best regards,
Marcin Haba (gani)

On Wed, 18 Aug 2021 at 16:14, JANOWSKI ERIC via Bacula-users <
bacula-users@lists.sourceforge.net> wrote:

> Hello,
>
> In BACULUM WEB 11.0.2.2, if I click on one of my FILESET creations to get
> the detail, i get the following message.
>
> Prado\Exceptions\TPhpErrorException Description
>
> [Warning] First parameter must either be an object or the name of an
> existing class (@line 158 in file
> /usr/share/baculum/htdocs/protected/Web/Portlets/BaculaConfigDirectives.php).
> Fichier Source
>
> /usr/share/baculum/htdocs/protected/Web/Portlets/BaculaConfigDirectives.php
> (158)
>
> 0147: $data = $this->getData();
> 0148: if (!empty($data)) {
> 0149: $config = $data;
> 0150: $predefined = true;
> 0151: }
> 0152: }
> 0153: $data_desc = $this->Application->getModule('data_desc');
> 0154: $resource_desc = $data_desc->getDescription($component_type, 
> $resource_type);
> 0155: foreach ($resource_desc as $directive_name => $directive_desc) {
> 0156: $in_config = false;
> 0157: if ($load_values === true) {
> 0158: $in_config = property_exists($config, $directive_name);
> 0159: }
> 0160:
> 0161: $directive_value = null;
> 0162: if (($in_config === true && $load_values === true) || 
> ($predefined && property_exists($config, $directive_name))) {
> 0163: $directive_value = $config->{$directive_name};
> 0164: }
> 0165:
> 0166: $default_value = null;
> 0167: $data = null;
> 0168: $field_type = 'TextBox';
> 0169: $resource = null;
> 0170: $required = false;
>
>
> Trace de la pile d'exécution:
>
> #0 [internal function]: Prado\PradoBase::phpErrorHandler(2, 'First 
> parameter...', '/usr/share/bacu...', 158, Array)
> #1 
> /usr/share/baculum/htdocs/protected/Web/Portlets/BaculaConfigDirectives.php(158):
>  property_exists(Array, 'Name')
> #2 
> /usr/share/baculum/htdocs/framework/pradosoft/prado/framework/TComponent.php(1169):
>  BaculaConfigDirectives->loadConfig(Object(FileSetView), NULL, 
> 'ondirectivelist...')
> #3 /usr/share/baculum/htdocs/protected/Web/Pages/FileSetView.php(57): 
> Prado\TComponent->raiseEvent('ondirectivelist...', Object(FileSetView), NULL)
> #4 
> /usr/share/baculum/htdocs/framework/pradosoft/prado/framework/Web/UI/TControl.php(1361):
>  FileSetView->onPreRender(NULL)
> #5 
> /usr/share/baculum/htdocs/framework/pradosoft/prado/framework/Web/UI/TPage.php(233):
>  Prado\Web\UI\TControl->preRenderRecursive()
> #6 
> /usr/share/baculum/htdocs/framework/pradosoft/prado/framework/Web/UI/TPage.php(208):
>  Prado\Web\UI\TPage->processNormalRequest(Object(Prado\Web\UI\THtmlWriter))
> #7 
> /usr/share/baculum/htdocs/framework/pradosoft/prado/framework/Web/Services/TPageService.php(528):
>  Prado\Web\UI\TPage->run(Object(Prado\Web\UI\THtmlWriter))
> #8 
> /usr/share/baculum/htdocs/framework/pradosoft/prado/framework/Web/Services/TPageService.php(465):
>  Prado\Web\Services\TPageService->runPage(Object(FileSetView), Array)
> #9 
> /usr/share/baculum/htdocs/framework/pradosoft/prado/framework/TApplication.php(1190):
>  Prado\Web\Services\TPageService->run()
> #10 
> /usr/share/baculum/htdocs/framework/pradosoft/prado/framework/TApplication.php(382):
>  Prado\TApplication->runService()
> #11 /usr/share/baculum/htdocs/index.php(31): Prado\TApplication->run()
> #12 {main}
>
> 2021-08-18 13:58 Apache/2.4.6 (CentOS) PHP/7.3.28 PRADO
> /4.0.1
>
>
> For example, my creation FileSet
>
> [image: Image en ligne]
>
> Thank you for your answers
>
>
> ___
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
>


-- 
"Greater love hath no man than this, that a man lay down his life for his
friends." Jesus Christ

"Większej miłości nikt nie ma nad tę, jak gdy kto życie swoje kładzie za
przyjaciół swoich." Jezus Chrystus
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] FileSet change detection

2012-05-30 Thread Uwe Mohn
 From what i've learned from the manual the "Exclude = yes " expression 
in the body of the "options" Part just determines weather eventually 
given wildcards like "wilddir=\xxx\*yy" found in the defined fileset are 
to be included (default;  no "Exclude = no" requiered) or excluded.

so here's one of my standard windows-filesets, the "options" part 
matches mostly all windows-server-disks, the "Exclude" part is 
machine-specific:

FileSet {
  Name = "someWindowsServer"
  Enable VSS = yes
  Include {
options {
  compression = GZIP
  ignore case = yes
  signature = MD5
  exclude = yes
  wilddir = "*/temp"
  wilddir = "*/recycler"
  wilddir = "*/system volume information"
  wilddir = "*/tmp"
}
File = "C:/"
  }
  Exclude {
File = "C:/Programme/Bacula/working"
File = "C:/pagefile.sys"
   }
}

So from my point of view your initial backup should have backuped the 
whole path you specified.
Why bacula doesn't consider the removement of the "Exclude" expression 
as a fileset change is beyond my knowledge.

Mit besten Grüßen / Kind Regards

Jens-Uwe Mohn
IT System Management

g/d/p Marktanalysen GmbH
Ein Unternehmen der Forschungsgruppe g/d/p
Richardstr. 18
D-22081 Hamburg
Fon: +49 (0)40 / 29876-170
Fax: +49 (0)40 / 29876-127
m...@gdp-group.com
www.gdp-group.com

Sitz der Gesellschaft ist Hamburg, Handelsregister Hamburg, HRB 37830
Geschäftsführer: Christa Braaß, Volker Rohweder, Clemens Steckner

-
This e-mail may contain confidential and/or privileged information.
If you are not the intended recipient please notify the sender and delete this 
e-mail from your whole system.
Any unauthorised copying, disclosure or distribution of the material in this 
e-mail is strictly forbidden.
-



 Original-Nachricht 
Betreff: [Bacula-users] FileSet change detection
Von: Tilman Schmidt 
An: bacula-users 
Datum: 29.05.2012 09:53
> Due to a copy/paste error, a FileSet on one of my Bacula installations
> (Director & SD Bacula 5.2.6 on CentOS 6, FD Bacula 5.2.6 on Windows
> Server 2003) initially read:
>
> FileSet {
>   Name = "Galadriel Archive"
>   Include {
> Options {
>   signature = MD5
>   Exclude = yes
>   IgnoreCase = yes
> }
> File = "H:/Public/Archive"
>   }
> }
>
> which did of course back up nothing at all. After removing the spurious
> "Exclude = yes" line, I was surprised to find that the next job wasn't
> promoted from Incremental to Full, and indeed only backed up those files
> which were touched since the preceding "empty set" backup. Is it
> possible that this particular modification of the FileSet definition is
> not detected as a change by Bacula?
>
>   
> 
>
> --
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and 
> threat landscape has changed and how IT managers can respond. Discussions 
> will include endpoint security, mobile security and the latest in malware 
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> 
>
> ___
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
>   



--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] FileSet change detection

2012-05-31 Thread Martin Simmons
> On Tue, 29 May 2012 09:53:26 +0200, Tilman Schmidt said:
> 
> Due to a copy/paste error, a FileSet on one of my Bacula installations
> (Director & SD Bacula 5.2.6 on CentOS 6, FD Bacula 5.2.6 on Windows
> Server 2003) initially read:
> 
> FileSet {
>   Name = "Galadriel Archive"
>   Include {
> Options {
>   signature = MD5
>   Exclude = yes
>   IgnoreCase = yes
> }
> File = "H:/Public/Archive"
>   }
> }
> 
> which did of course back up nothing at all. After removing the spurious
> "Exclude = yes" line, I was surprised to find that the next job wasn't
> promoted from Incremental to Full, and indeed only backed up those files
> which were touched since the preceding "empty set" backup. Is it
> possible that this particular modification of the FileSet definition is
> not detected as a change by Bacula?

Yes, it only compares the "File =" lines.

__Martin

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Fileset compression + Migration

2007-10-18 Thread Eric Böse-Wolf
Hello Arvid,

Arvid Rune Rånes <[EMAIL PROTECTED]> writes:

> Is it possible to turn software compression on/off other
> places than inside the fileset definition and override it (in job
> def. or storage def.)?

I think you should not use software compression from inside bacula in
this scenario. Try to get some transparent filesystem compression on the
lv/partition where your backups file volumes are. That has two 
advantages:

1. You don't need to bother about compression in bacula.
2. If you migrate a job from file to tape it won't be twice compressed.
   (If you backup to file, the backup get's compressed, if you migrate, 
   the contents of the file volume will be written on the tape but on a 
   per job basis and not on a per file basis, but the compression is on 
   a per file basis so I can't imagine, that the backups get
   decompressed for migration and zooom you have twice compressed data,
   which is most of the time bad.)

As I'm not an expert on bacula, take a grain of salt.

Your sincerely,

Eric


pgpnPJxSdtPzd.pgp
Description: PGP signature
-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Fileset locking mechanisms

2007-04-04 Thread Arno Lehmann
Hi,

On 4/5/2007 12:23 AM, John Quigley wrote:
> Hey Folks:
> 
> This question pertains to Bacula's file/fileset locking mechanisms. 
> Imagine a data set that you've defined to be be backed up via Bacula, 
> across a network.  The fileset is sufficiently large that it will take 
> several hours to properly transmit and store on the storage server. 
> What mechanisms have been put in place to prevent modification of the 
> local data set while this transaction is underway?  I can't seem to find 
> reference to this in the dev/user documentation, so any insight or 
> pointers to further information would be hugely appreciated.

The only reasonable approaches to this problem seem to be 1) ignore it 
and 2) snapshots.

Snapshots are not created by Bacula automatically, with the noteable 
exception of windows VSS backups. For unix-like systems, you could use a 
script run on the client before the job that creates a snapshot, then 
back up that instead of the 'normal' file system, and finally destroy 
the snapshot after your job finished.

Arno

> Thanks so much for your time and help =)
> 
> - John Quigley
> 
> -
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys-and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> ___
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users

-- 
IT-Service Lehmann[EMAIL PROTECTED]
Arno Lehmann  http://www.its-lehmann.de

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] FileSet -- default options?

2011-04-19 Thread Christian Manal
Am 19.04.2011 15:30, schrieb hymie!:
> Can I set "default options" for FileSets the way I can for Jobs?  Or,
> can I somehow include an external file into my bacula-dir.conf file
> at a specific point?

Hi,

I don't think there is something like JobDefs for FileSets, but you can
include external files anywhere in your configuration by putting an @ in
front of the path.

Example:

   FileSet {
  Name = "Windows-C"
  Include {
 @/path/to/options.conf
 File = "C:/"
  }
   }


Regards,
Christian Manal

--
Benefiting from Server Virtualization: Beyond Initial Workload 
Consolidation -- Increasing the use of server virtualization is a top
priority.Virtualization can reduce costs, simplify management, and improve 
application availability and disaster protection. Learn more about boosting 
the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Fileset with wildcards

2022-06-22 Thread Martin Simmons
Your first attempt didn't work because the "File =" line doesn't allow
wildcards.

Your second attempt didn't work because Bacula traverses the folder tree
starting from /home, but the fileset doesn't match any direct subfolders in
/home, so it stopped before it could find the subfolders matching your
wilddir.

The simplest fix is to generate the fileset using a script something like
this:

FileSet {
Name = "My-Fileset "
Include {
Options {
wilddir=lost+found
wildfile=*.wav
wildfile=*.mp3
wildfile=*.avi
wildfile=*.iso
wildfile=*.ogg
wildfile=core.*
wildfile=*.o
Exclude = yes
}
Options {
Hardlinks = no
Compression = GZIP8
}
   File = "\\|sh -c 'ls -1d /home/*/*/*-tutor'"

   }
}

Note that the options to ls contain the digit one (not the letter l) to make
it print one name per line.  Also note that the Options for excluding are
listed first so that the default options are last (look for "last Options
resource" in the documentation).  Also, the options for excluding must be
within the same Include clause.

__Martin


> On Wed, 22 Jun 2022 10:28:39 +, Gestió Servidors said:
> 
> Hello,
> 
> I need to backup some subfolders that match a pattern like their name 
> contains "-tutor" string. For example, the folder tree is similar to:
> 
> /home/students/a/a1
> /home/students/a/a2
> /home/students/a/a3
> /home/students/a/a-tutor
> /home/students/b/b1
> /home/students/b/b2
> /home/students/b/b3
> /home/students/b/b-tutor
> /home/teachers/a/a1
> /home/teachers/a/a2
> /home/teachers/a/a3
> /home/teachers/a/a-tutor
> /home/teachers/b/b1
> /home/teachers/b/b2
> /home/teachers/b/b3
> /home/teachers/b/b-tutor
> 
> 
> I need to backup only folders "*-tutor" from all "home" subfolders, so I need 
> to backup these folders:
> 
> /home/students/a/a-tutor
> /home/students/b/b-tutor
> /home/teachers/a/a-tutor
> /home/teachers/b/b-tutor
> 
> 
> I have configured a fileset in this way:
> 
> FileSet {
> Name = "My-Fileset "
> Include {
> Options {
> Hardlinks = no
> Compression = GZIP8
> }
> Options {
> wilddir=lost+found
> wildfile=*.wav
> wildfile=*.mp3
> wildfile=*.avi
> wildfile=*.iso
> wildfile=*.ogg
> wildfile=core.*
> wildfile=*.o
> Exclude = yes
> }
>File = /home/*/*/*-tutor
> 
>}
> }
> 
> But backup don't contains any "/home/*/*/*-tutor"... so there is something 
> bad configured. I have run another backup with this fileset, but nothing 
> backup...
> 
> FileSet {
> Name = "My-Fileset-v2"
> Include {
> Options {
> Hardlinks = no
> Compression = GZIP8
> wilddir = "/home/*/*/*-tutor"
> }
> File = /home
> }
> 
> Include {
> Options {
> wilddir=lost+found
> wildfile=*.wav
> wildfile=*.mp3
> wildfile=*.avi
> wildfile=*.iso
> wildfile=*.ogg
> wildfile=core.*
> wildfile=*.o
> Exclude = yes
> }
> }
> }
> 
> So... I need help...
> 
> Thanks!!!
> 


___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Fileset inclusion list question

2013-05-23 Thread Radosław Korzeniewski
Hello,

2013/5/22 Jonathan Bayer 

> I remember that a while ago, if a directory was included 2 times (such
> as the following):
>
> Include {
>File = /
>File = /usr
> }
>
> and /usr was on the same filesystem, it would be backed up two times.
> Is this still the case?
>
>
I think yes. You want to backup recursive '/' and '/usr'. It is your
request, Bacula will follow.


> I'm asking because I have a fileset definition which lists a number of
> the main directories on a Linux filesystem, and want to use this on many
> different systems, some of which have these directories on seperate
> filesystems and some don't.
>
>
I am using a separate FileSet definitions in this case. I check what
filesystems are available and then I'm choosing a proper fileset.
Simple and effective.

best regards
-- 
Radosław Korzeniewski
rados...@korzeniewski.net
--
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Fileset inclusion list question

2013-05-23 Thread Radosław Korzeniewski
Hello,

2013/5/23 Jonathan Bayer 

>  Ok.  So this is either a "feature" or a "bug" depending on your point of
> view :-)
>
>
In my point of view it is not a "bug" nor a "feature". User wants to copy
recursive all files from "/" and from "/usr" filesystems, so any available
utility will copy some files twice in your case. User asked for it.


> So, how about this for a workaround:
>
> Create a shell script on each target system (I put them into
> /etc/bacula/bin) which contains the following:
>
> listfilesystems:
>
> #!/bin/bash
>
> # List of filesystems to be excluded.  All command-line options are
> assumed to be
> # other filesystems to be excluded
> EXCLUDE="/dev /proc /tmp /sys $*"
>
> # Get list of all filesystems
> fs=`df -P | sed -e's/  */ /g' | cut -f 6 -d' ' | sed 1d`
>
> for excludes in $EXCLUDE; do
> a1=""
> for i1 in $fs; do
> case $i1 in
> "$excludes"*)  ;;
> *)  a1="$i1 $a1"
> ;;
> esac
> done
> fs=$a1
> done
> # Following to put one filesystem per line
> for i in $fs; do
> echo $i
> done
>
> Then, in the fileset, add the following:
>
> Fileset {
>   ...
>   File = "\\|/etc/bacula/bin/listfilesystems"
>   ...
> }
>
> As I understand it, this will call the script on the remote system, and
> include the output as part of the files to be backed up.  By listing the
> individual filesystems, they will all get backed up.
>

TIMTOWTDI (http://en.wikipedia.org/wiki/There's_more_than_one_way_to_do_it).


>
> I have a little cleanup, but would like to get input from more experienced
> bacula admins before I implement this.
>
>
I personally prefer a number of static fileset definitions which match
expected filesystems on client machine.
The same for fifos (your another thread). I personally prefer bpipe plugin.

best regards
-- 
Radosław Korzeniewski
rados...@korzeniewski.net
--
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Fileset inclusion list question

2013-05-23 Thread Dimitri Maziuk
On 2013-05-23 08:30, Radosław Korzeniewski wrote:
> Hello,
>
> 2013/5/23 Jonathan Bayer  >
>
> Ok.  So this is either a "feature" or a "bug" depending on your
> point of view :-)
>
>
> In my point of view it is not a "bug" nor a "feature". User wants to
> copy recursive all files from "/" and from "/usr" filesystems, so any
> available utility will copy some files twice in your case. User asked
> for it.

(I just had this discussion in the "RAIT" thread) It's how sequential 
media works: you can write the same exact bytes to different locations 
on the tape. This percolates to all streaming formats ("tar -c * *") and 
related software, backup systems being the prime example. I was 
half-hoping bacula uses the absolute path + checksum as the primary key 
in its catalog (and so would not backup the same file twice), but no 
such luck.

> I personally prefer a number of static fileset definitions which match
> expected filesystems on client machine.

I ended up doing
\\sh -c 'find ... -exec dirname \\{} \\; | sort | uniq'
because my filesets are not static -- but you need to make sure the 
selector doesn't return files in a subdir *and* its parent dir (in my 
case it shouldn't, fingers crossed ;-)

Dimitri


--
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Fileset inclusion list question

2013-05-23 Thread Ana Emília Machado de Arruda
Have you tried configuring onefs = no?

"If you wish to backup multiple filesystems, you can explicitly list each
filesystem you want saved. Otherwise, if you set the onefs option to *no*,
Bacula will backup all mounted file systems (i.e. traverse mount points)
that are found within the *FileSet*."

Doing this way you does not need to specify "/" and "/usr". Just the
effective directories. Am I doing some confusion here or this solves your
problem?

Regards,
Ana

On Wed, May 22, 2013 at 4:38 PM, Jonathan Bayer wrote:

> I remember that a while ago, if a directory was included 2 times (such
> as the following):
>
> Include {
>File = /
>File = /usr
> }
>
> and /usr was on the same filesystem, it would be backed up two times.
> Is this still the case?
>
> I'm asking because I have a fileset definition which lists a number of
> the main directories on a Linux filesystem, and want to use this on many
> different systems, some of which have these directories on seperate
> filesystems and some don't.
>
> Thanks in advance.
>
>
> JBB
>
>
> --
> Try New Relic Now & We'll Send You this Cool Shirt
> New Relic is the only SaaS-based application performance monitoring service
> that delivers powerful full stack analytics. Optimize and monitor your
> browser, app, & servers with just a few lines of code. Try New Relic
> and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may
> ___
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
>
--
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Fileset inclusion list question

2013-05-23 Thread Jonathan Bayer

That probably would, I'll have to read it.
Thanks


JBB


On 5/23/13 12:53 PM, Ana Emília Machado de Arruda wrote:

Have you tried configuring onefs = no?

"If you wish to backup multiple filesystems, you can explicitly list 
each filesystem you want saved. Otherwise, if you set the onefs option 
to *no*, Bacula will backup all mounted file systems (i.e. traverse 
mount points) that are found within the*FileSet*."


Doing this way you does not need to specify "/" and "/usr". Just the 
effective directories. Am I doing some confusion here or this solves 
your problem?


Regards,
Ana

On Wed, May 22, 2013 at 4:38 PM, Jonathan Bayer 
mailto:linuxguruga...@gmail.com>> wrote:


I remember that a while ago, if a directory was included 2 times (such
as the following):

Include {
   File = /
   File = /usr
}

and /usr was on the same filesystem, it would be backed up two times.
Is this still the case?

I'm asking because I have a fileset definition which lists a number of
the main directories on a Linux filesystem, and want to use this
on many
different systems, some of which have these directories on seperate
filesystems and some don't.

Thanks in advance.


JBB


--
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance
monitoring service
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt!
http://p.sf.net/sfu/newrelic_d2d_may
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/bacula-users




--
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may


___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


--
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Fileset inclusion list question

2013-05-23 Thread Dimitri Maziuk
On 05/23/2013 12:00 PM, Jonathan Bayer wrote:
> That probably would, I'll have to read it.

"File = /" will not back up /usr *if* / and /usr are separate filesystems.

-- 
Dimitri Maziuk
Programmer/sysadmin
BioMagResBank, UW-Madison -- http://www.bmrb.wisc.edu



signature.asc
Description: OpenPGP digital signature
--
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Fileset inclusion list question

2013-05-23 Thread Radosław Korzeniewski
Hello,

2013/5/23 Dimitri Maziuk 

> On 05/23/2013 12:00 PM, Jonathan Bayer wrote:
> > That probably would, I'll have to read it.
>
> "File = /" will not back up /usr *if* / and /usr are separate filesystems.
>
>
With "onefs=no" option (as Ana suggested) it (File=/) will backup "/usr"
when "/" and "/usr" are separate filesystems. This is how onefs=no works.

It will backup a "/proc", "/sys" or other virtual or remote filesystems if
they not be carefully excluded. So be warned!

best regards
-- 
Radosław Korzeniewski
rados...@korzeniewski.net
--
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Fileset inclusion list question

2013-05-23 Thread Dimitri Maziuk
> On 05/23/2013 12:00 PM, Jonathan Bayer wrote:
>> That probably would, I'll have to read it.
> 
> "File = /" will not back up /usr *if* / and /usr are separate filesystems.

I should've spelled out "and 'onefs = yes', which is the default".

The point being, unless you already have every subdirectory you care
about on every host in its own separate partition (not a very common
setup IME), "onefs" will probably not help you.

-- 
Dimitri Maziuk
Programmer/sysadmin
BioMagResBank, UW-Madison -- http://www.bmrb.wisc.edu





signature.asc
Description: OpenPGP digital signature
--
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Fileset inclusion list question

2013-05-23 Thread Ana Emília Machado de Arruda
Yes, I would prefer to have a long list of "/usr". "/etc", "/var", etc.
And have "onefs = yes". This way avoids a lot of trouble, including
"infinite loop recursing filesystems", like states in manual...

If you have onefs set to no, you have to be very carefull about excluding
directories to avoid incuring unexpected situations.

Regards,
Ana

On Thu, May 23, 2013 at 4:22 PM, Dimitri Maziuk wrote:

> > On 05/23/2013 12:00 PM, Jonathan Bayer wrote:
> >> That probably would, I'll have to read it.
> >
> > "File = /" will not back up /usr *if* / and /usr are separate
> filesystems.
>
> I should've spelled out "and 'onefs = yes', which is the default".
>
> The point being, unless you already have every subdirectory you care
> about on every host in its own separate partition (not a very common
> setup IME), "onefs" will probably not help you.
>
> --
> Dimitri Maziuk
> Programmer/sysadmin
> BioMagResBank, UW-Madison -- http://www.bmrb.wisc.edu
>
>
>
>
>
> --
> Try New Relic Now & We'll Send You this Cool Shirt
> New Relic is the only SaaS-based application performance monitoring service
> that delivers powerful full stack analytics. Optimize and monitor your
> browser, app, & servers with just a few lines of code. Try New Relic
> and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may
> ___
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
>
>
--
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Fileset inclusion list question

2013-05-23 Thread Dimitri Maziuk
On 05/23/2013 02:43 PM, Ana Emília Machado de Arruda wrote:
> Yes, I would prefer to have a long list of "/usr". "/etc", "/var", etc.
> And have "onefs = yes". This way avoids a lot of trouble, including
> "infinite loop recursing filesystems", like states in manual...

Uhmm... and how much time do you spend repartitioning your disks and
resizing filesystems?

-- 
Dimitri Maziuk
Programmer/sysadmin
BioMagResBank, UW-Madison -- http://www.bmrb.wisc.edu



signature.asc
Description: OpenPGP digital signature
--
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Fileset inclusion list question

2013-05-24 Thread Ana Emília Machado de Arruda
Hi Dimitri,

I just have /home and /media in separate partitions. And we have a very
good controlled and well dimensioned /var, /usr and /etc. This way we
rarely need to resize our filesystems.
What I suggested here was basically not having an entire "/" backup. IMHO
there is no need to back up the whole root partition...
And If Jonathan has a lot of separated filesystems mounted under /mnt, for
example, he could use onefs=no and put "File = /mnt" in his fileset
definition.

Regards,
Ana

On Thu, May 23, 2013 at 4:46 PM, Dimitri Maziuk wrote:

> On 05/23/2013 02:43 PM, Ana Emília Machado de Arruda wrote:
> > Yes, I would prefer to have a long list of "/usr". "/etc", "/var", etc.
> > And have "onefs = yes". This way avoids a lot of trouble, including
> > "infinite loop recursing filesystems", like states in manual...
>
> Uhmm... and how much time do you spend repartitioning your disks and
> resizing filesystems?
>
> --
> Dimitri Maziuk
> Programmer/sysadmin
> BioMagResBank, UW-Madison -- http://www.bmrb.wisc.edu
>
>
>
> --
> Try New Relic Now & We'll Send You this Cool Shirt
> New Relic is the only SaaS-based application performance monitoring service
> that delivers powerful full stack analytics. Optimize and monitor your
> browser, app, & servers with just a few lines of code. Try New Relic
> and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may
> ___
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
>
>
--
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] FileSet file-list question

2014-11-05 Thread heitor

I try to use bacula to backup files with windows-machines. In my case, 
bacula-director is working on debian linux, and bacula-fd on windows. 
In the setting of director, a FileSet, in Include {} section, there is a 
record File = "\\--
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] FileSet wildcard exclusion question

2007-05-09 Thread Justin Lott
I've wondered this as well...

- justin

On May 8, 2007, at 7:42 PM, Antoine Durr wrote:

> Hi,
>I've successfully set up a FileSet that excludes files.  But I had
> a question: what's the rationale behind having to put 'WildFile' and
> 'exclude = yes' into an 'Options' section of an 'Include' block, as  
> in:
>
>
> FileSet {
>Name = "GeoFiles"
>Include {
>  Options {
> WildFile = "*.obj"
> exclude = yes
>   }
>   File = "/nfs/geometries
>}
> }
>
> Is it legal to do this in the Exclude block instead?
>
> FileSet {
>Name = "GeoFiles"
>Include {
>   File = "/nfs/geometries
>}
>Exclude {
>  options {
>WildFile = "*.obj" # legal?
>  }
>}
> }
>
> Just curious, as to a new Bacula but experienced technical user, this
> seems very counterintuitive.
>
> Thanks!
>
> -- Antoine
>
> Floq FX Inc.
> 10839 Washington Blvd.
> Culver City, CA 90232
> 310/430-2473
>
>
>
>
>
> -- 
> ---
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> ___
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] FileSet wildcard exclusion question

2007-05-09 Thread Brian Debelius
I have wondered this as wellalso.  I find it confusing. to be this way.
Justin Lott wrote:
> I've wondered this as well...
>
> - justin
>
> On May 8, 2007, at 7:42 PM, Antoine Durr wrote:
>
>   
>> Hi,
>>I've successfully set up a FileSet that excludes files.  But I had
>> a question: what's the rationale behind having to put 'WildFile' and
>> 'exclude = yes' into an 'Options' section of an 'Include' block, as  
>> in:
>>
>>
>> FileSet {
>>Name = "GeoFiles"
>>Include {
>>  Options {
>> WildFile = "*.obj"
>> exclude = yes
>>   }
>>   File = "/nfs/geometries
>>}
>> }
>>
>> Is it legal to do this in the Exclude block instead?
>>
>> FileSet {
>>Name = "GeoFiles"
>>Include {
>>   File = "/nfs/geometries
>>}
>>Exclude {
>>  options {
>>WildFile = "*.obj" # legal?
>>  }
>>}
>> }
>>
>> Just curious, as to a new Bacula but experienced technical user, this
>> seems very counterintuitive.
>>
>> Thanks!
>>
>> -- Antoine
>>
>> Floq FX Inc.
>> 10839 Washington Blvd.
>> Culver City, CA 90232
>> 310/430-2473
>>
>>
>>
>>
>>
>> -- 
>> ---
>> This SF.net email is sponsored by DB2 Express
>> Download DB2 Express C - the FREE version of DB2 express and take
>> control of your XML. No limits. Just data. Click to get it now.
>> http://sourceforge.net/powerbar/db2/
>> ___
>> Bacula-users mailing list
>> Bacula-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/bacula-users
>> 
>
>
> -
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> ___
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
>   


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] FileSet BUG or not?

2007-09-13 Thread Yuri Timofeev
Workaround (description of problem see below):

FileSet  {
Name = "test.set"
Include {
File = "|myfile"
}
}


myfile  (chmod a+x):

#!/bin/sh
find /tmp/test/|egrep "^/tmp/test/[^/]+/1/.*"



Result:
/tmp/test/a2/1/test_file
/tmp/test/b1/1/test_file
/tmp/test/b2/1/test_file
/tmp/test/a1/1/test_file
the end.



 problem
-

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?
-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] FileSet BUG or not?

2007-09-14 Thread Martin Simmons
> 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/vse012070mrt/direct/01/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Fileset depending on ClientRunBefore

2007-10-09 Thread Dan Langille
On 9 Oct 2007 at 19:54, Leon Bruno wrote:

> 
> Hi all,
> 
> One of my job is calling a script to do some databases backup.
> The fileset is then defined to call that same script with another
> parameter that list the backup that has just been done.
> 
> >From what I've tested, it seems that the fileset is estimated before
> >the
> runbefore task. This is preventing my backup because at the time the
> fileset is estimated, the backup is not yet done... Is there any way
> to tell bacula to do the fileset estimation after the runbefore task ?

Have you considered the estimate command in bconsole?

Would that output be useful for you?

-- 
Dan Langille - http://www.langille.org/
Available for hire: http://www.freebsddiary.org/dan_langille.php



-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Fileset depending on ClientRunBefore

2007-10-09 Thread Leon Bruno

Yes I did the estimate command on the fileset and the result is what I
expected.
That's why I believe at the time bacula get the list of files to backup,
the backup is not yet done, thus the runbefore command is actually
executed after the fileset has been estimated.

Bruno
 

-Original Message-
From: Dan Langille [mailto:[EMAIL PROTECTED] 
Sent: mardi 9 octobre 2007 19:58
To: Leon Bruno
Cc: bacula-users@lists.sourceforge.net
Subject: Re: [Bacula-users] Fileset depending on ClientRunBefore

On 9 Oct 2007 at 19:54, Leon Bruno wrote:

> 
> Hi all,
> 
> One of my job is calling a script to do some databases backup.
> The fileset is then defined to call that same script with another 
> parameter that list the backup that has just been done.
> 
> >From what I've tested, it seems that the fileset is estimated before 
> >the
> runbefore task. This is preventing my backup because at the time the 
> fileset is estimated, the backup is not yet done... Is there any way 
> to tell bacula to do the fileset estimation after the runbefore task ?

Have you considered the estimate command in bconsole?

Would that output be useful for you?

--
Dan Langille - http://www.langille.org/
Available for hire: http://www.freebsddiary.org/dan_langille.php



-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Fileset depending on ClientRunBefore

2007-10-09 Thread Dan Langille
On 9 Oct 2007 at 20:05, Leon Bruno wrote:

> On 9 Oct 2007 at 19:54, Leon Bruno wrote:
> 
> > 
> > Hi all,
> > 
> > One of my job is calling a script to do some databases backup.
> > The fileset is then defined to call that same script with another
> > parameter that list the backup that has just been done.
> > 
> > >From what I've tested, it seems that the fileset is estimated
> > >before the
> > runbefore task. This is preventing my backup because at the time the
> > fileset is estimated, the backup is not yet done... Is there any way
> > to tell bacula to do the fileset estimation after the runbefore task
> > ?
> 
> Have you considered the estimate command in bconsole?
> 
> Would that output be useful for you?

Leon wrote:

> Yes I did the estimate command on the fileset and the result is what I
> expected. That's why I believe at the time bacula get the list of
> files to backup, the backup is not yet done, thus the runbefore
> command is actually executed after the fileset has been estimated.

Please do not reply at the top of the email.

I do not understand what you need.  From the subject, I think you 
want to create a FileSet from ClientRunBefore.  But I have a hard 
time parsing the content of your email to understand your objective.

I will guess again: If you are trying to dynamically create a 
FileSet, I suggest reading this URL:

   http://www.bacula.org/rel-manual/Configuring_Director.html

And search for this test:

"There are a number of special cases when specifying directories and 
files in a file-list. They are:"

If that is not what you need, please tell us your goal / objective.  
You are asking how "to do the fileset estimation after the runbefore 
task".  I think you've already decided what the solution is but I 
think some context will help us find a solution for you that will 
work.

-- 
Dan Langille - http://www.langille.org/
Available for hire: http://www.freebsddiary.org/dan_langille.php



-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Fileset depending on ClientRunBefore

2007-10-09 Thread Troy Daniels
Dan Langille wrote:
> On 9 Oct 2007 at 20:05, Leon Bruno wrote:
> 
>> On 9 Oct 2007 at 19:54, Leon Bruno wrote:
>>
>>> Hi all,
>>>
>>> One of my job is calling a script to do some databases backup.
>>> The fileset is then defined to call that same script with another
>>> parameter that list the backup that has just been done.
>>>
>>> >From what I've tested, it seems that the fileset is estimated
 before the
>>> runbefore task. This is preventing my backup because at the time the
>>> fileset is estimated, the backup is not yet done... Is there any way
>>> to tell bacula to do the fileset estimation after the runbefore task
>>> ?
>> Have you considered the estimate command in bconsole?
>>
>> Would that output be useful for you?
> 
> Leon wrote:
> 
>> Yes I did the estimate command on the fileset and the result is what I
>> expected. That's why I believe at the time bacula get the list of
>> files to backup, the backup is not yet done, thus the runbefore
>> command is actually executed after the fileset has been estimated.
> 
> Please do not reply at the top of the email.
> 
> I do not understand what you need.  From the subject, I think you 
> want to create a FileSet from ClientRunBefore.  But I have a hard 
> time parsing the content of your email to understand your objective.
> 
> I will guess again: If you are trying to dynamically create a 
> FileSet, I suggest reading this URL:
> 
>http://www.bacula.org/rel-manual/Configuring_Director.html
> 
> And search for this test:
> 
> "There are a number of special cases when specifying directories and 
> files in a file-list. They are:"
> 
> If that is not what you need, please tell us your goal / objective.  
> You are asking how "to do the fileset estimation after the runbefore 
> task".  I think you've already decided what the solution is but I 
> think some context will help us find a solution for you that will 
> work.
> 


I might be wrong, but I read this to mean Bruno was having problems 
because Bacula builds the fileset/filelist it is going to back up before 
it runs the RunBefore job.

However, Bruno's script is designed to do a Database backup first and 
then provide the fileset information on where this Backup is stored second.

As far as I know there is no way to control this behavior, I can see a 
couple of ways to work around it:

1) Have the actual Database Backup done as part of an Admin job 
scheduled to occur just before the Bacula Backup job runs. If you are 
running multiple concurrent jobs this might be hard to implement.

2) Backup the files to a location you can calculate in advance - For 
example, make every days backup get created in a subfolder named after 
the date for example. The 'fileset building script' can then easily pass 
this folder back to Bacula.

3) Have the fileset building process run the backup directly first - No 
idea whether this would even work, nor exactly how bad an idea it would be.

Hope this helps,


Troy.

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Fileset depending on ClientRunBefore

2007-10-10 Thread Arno Lehmann
Hi,

10.10.2007 05:13,, Troy Daniels wrote::
> Dan Langille wrote:
>> On 9 Oct 2007 at 20:05, Leon Bruno wrote:
>>
>>> On 9 Oct 2007 at 19:54, Leon Bruno wrote:
>>>
 Hi all,

 One of my job is calling a script to do some databases backup.
 The fileset is then defined to call that same script with another
 parameter that list the backup that has just been done.

 >From what I've tested, it seems that the fileset is estimated
> before the
 runbefore task. This is preventing my backup because at the time the
 fileset is estimated, the backup is not yet done... Is there any way
 to tell bacula to do the fileset estimation after the runbefore task
 ?
>>> Have you considered the estimate command in bconsole?
>>>
>>> Would that output be useful for you?
>> Leon wrote:
>>
>>> Yes I did the estimate command on the fileset and the result is what I
>>> expected. That's why I believe at the time bacula get the list of
>>> files to backup, the backup is not yet done, thus the runbefore
>>> command is actually executed after the fileset has been estimated.
>> Please do not reply at the top of the email.
>>
>> I do not understand what you need.  From the subject, I think you 
>> want to create a FileSet from ClientRunBefore.  But I have a hard 
>> time parsing the content of your email to understand your objective.
>>
>> I will guess again: If you are trying to dynamically create a 
>> FileSet, I suggest reading this URL:
>>
>>http://www.bacula.org/rel-manual/Configuring_Director.html
>>
>> And search for this test:
>>
>> "There are a number of special cases when specifying directories and 
>> files in a file-list. They are:"
>>
>> If that is not what you need, please tell us your goal / objective.  
>> You are asking how "to do the fileset estimation after the runbefore 
>> task".  I think you've already decided what the solution is but I 
>> think some context will help us find a solution for you that will 
>> work.
>>
> 
> 
> I might be wrong, but I read this to mean Bruno was having problems 
> because Bacula builds the fileset/filelist it is going to back up before 
> it runs the RunBefore job.
> 
> However, Bruno's script is designed to do a Database backup first and 
> then provide the fileset information on where this Backup is stored second.
> 
> As far as I know there is no way to control this behavior, I can see a 
> couple of ways to work around it:
> 
> 1) Have the actual Database Backup done as part of an Admin job 
> scheduled to occur just before the Bacula Backup job runs. If you are 
> running multiple concurrent jobs this might be hard to implement.
 >
> 2) Backup the files to a location you can calculate in advance - For 
> example, make every days backup get created in a subfolder named after 
> the date for example. The 'fileset building script' can then easily pass 
> this folder back to Bacula.
> 
> 3) Have the fileset building process run the backup directly first - No 
> idea whether this would even work, nor exactly how bad an idea it would be.

This works.

Basically you create whatever files you need, and output their names.

Arno

> Hope this helps,
> 
> 
> Troy.
> 
> -
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems?  Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >> http://get.splunk.com/
> ___
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users

-- 
Arno Lehmann
IT-Service Lehmann
www.its-lehmann.de

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] FileSet Exclude by Default

2005-03-19 Thread Kern Sibbald
Hello,

On Friday 18 March 2005 23:56, David Fuchs wrote:
> Hello,
>
>  I've been trying to configure a FileSet that will only back up
> specific file extensions, but I seem to be misunderstanding the syntax of
> the FileSet records.
>
>  By searching the archives, I found the following FileSet example
> from someone else in the same situation.  In my effort to back up only
> certain file extensions (and exclude everything else by default) I came up
> with a very similar FileSet definition myself (only I'm specifying
> tarballs instead of M$ Office documents):
>

It was probably me who proposed something like the following.  I suspect it 
never worked because contrary to what I thought the exclude = yes matches 
nothing.  So,  I have two suggestions that may work:

1. Add a
 wild = "*"
   just after the exclude = yes

2. Alternatively, and probably better, add a

regex = ".?*$"

   just after the exclude = yes.

I would be interested to know if this works or not.

>
>  FileSet {
>Name = "std_workstation_lite"
>Include {
>  Options {
> wild = "*.doc"
> wild = "*.xls"
> compression = GZIP
> signature = MD5
>  }
>  Options {
> # match all files not matched by wild above
> exclude = yes
>  }
>  File = "c:/Documents and Settings/"
>}
>  }
>
>
>  I'll explain in my own words what I believe this definition does,
> so that my mistakes may be easy to point out.  To begin, the online manual
> states (with regard to filesets) a critical piece of information:
>
> "An Options resource that does not contain a wild directive is assumed to
> match any filename. This is important to understand, because once Bacula
> determine that the Options matches the file under consideration, that
> file will be saved without looking at any other Options resources that
> may be present."

This is why I thought the above would work, but I think in fact that the above 
is wrong. On the other hand, if one drops out of all the Options, and nothing 
has matched, then everything is matched, and the Options from the last 
Options are used (but apparently not the exclude -- I'm going to look into 
this).

>
>  First, the FileSet (example above) determines that "c:/Documents
> and Settings/" is to be backed up (recursively by default), contingent on
> the declared Options resources.
>
>  The first listed Options resource states that any .xls or .doc
> files will have GZIP compression applied, and will be fingerprinted with an
> MD5 signature.  If files with these two extensions are found, then the
> Options resource has a successful match, and the files are backed up after
> the options are applied (no more Options resources need be consulted - the
> manual says so).

Yes.

>
>  The second Options resource doesn't have any wild or regex, so we
> know that it matches ALL files (again, the manual says so).  
Probably not true.
> Additionally, 
> it has 'exclude' set to 'yes', meaning that any matching files will be
> excluded from the backup.  Finally, since Bacula will never consider this
> Options resource for .xls or .doc files (due to the first Options resource
> successfully matching them), then we must infer that all files except those
> will be excluded from the backup.
>
>  In practice, this type of configuration results in all files being
> backed up, no matter what their extension, even though the FileSet
> appears to be configured properly.  I'd very much like to know what I'm
> doing wrong here - your consideration in this matter is much appreciated!

Please let us know if my suggestions above help ...

>
> Thanks,
> -David Fuchs
>
>
>
>
> ---
> SF email is sponsored by - The IT Product Guide
> Read honest & candid reviews on hundreds of IT Products from real users.
> Discover which products truly live up to the hype. Start reading now.
> http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
> ___
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users

-- 
Best regards,

Kern


---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] FileSet Exclude by Default

2005-03-19 Thread David Fuchs
Kern Sibbald wrote:
Hello,
On Friday 18 March 2005 23:56, David Fuchs wrote:
 

Hello,
I've been trying to configure a FileSet that will only back up
specific file extensions, but I seem to be misunderstanding the syntax of
the FileSet records.
By searching the archives, I found the following FileSet example
from someone else in the same situation.  In my effort to back up only
certain file extensions (and exclude everything else by default) I came up
with a very similar FileSet definition myself (only I'm specifying
tarballs instead of M$ Office documents):
   

It was probably me who proposed something like the following.  I suspect it 
never worked because contrary to what I thought the exclude = yes matches 
nothing.  So,  I have two suggestions that may work:

1. Add a
wild = "*"
  just after the exclude = yes
2. Alternatively, and probably better, add a
   regex = ".?*$"
  just after the exclude = yes.
I would be interested to know if this works or not.
 

Thank-you for your message Kern.  I tried both of your suggestions - 
both seem quite reasonable; however, the first one resulted in no files 
being backed up at all.  The regex in the second suggestion produced 
config errors.  I changed it to:

   regex = ".*"
   and I also tried
   regex = "^.*$"
Though both of these resulted in no files being backed up.  I made sure 
to add the wild/regex statements after the exclude = yes, though the 
results were the same no matter where in the Options resource I placed them.

It's a curious thing... the wild = * or above regex statements in the 
second Options resource results in no files being backed up at all, yet 
it should not have even read that Options resource with regard to the 
tarballs I'm trying to back up (since those are matched by a previous 
Options Resource).  Here is the latest version of my fileset config 
(which currently results in no files being backed up):

FileSet {
 Name = "Test Set"
 Include {
   Options {
   wild = *.tar.gz
   signature = MD5
   compression = GZIP
   }
   Options {
   exclude = yes
   wild = *
   }
   File = /home/df/test
 }
}
The directory /home/df/test consists of a combination of regular files, 
tarballs (tar.gz), and directories.

"An Options resource that does not contain a wild directive is assumed to
match any filename. This is important to understand, because once Bacula
determine that the Options matches the file under consideration, that
file will be saved without looking at any other Options resources that
may be present."
   

This is why I thought the above would work, but I think in fact that the above 
is wrong. On the other hand, if one drops out of all the Options, and nothing 
has matched, then everything is matched, and the Options from the last 
Options are used (but apparently not the exclude -- I'm going to look into 
this).

Thanks very much Kern, any other suggestions you or anyone else has are 
much appreciated!

-David Fuchs
begin:vcard
fn:David Fuchs
n:Fuchs;David
adr:;;;Langley;BC;;Canada
email;internet:[EMAIL PROTECTED]
note:Aut viam inveniam aut faciam
x-mozilla-html:FALSE
version:2.1
end:vcard



Re: [Bacula-users] FileSet Exclude by Default

2005-03-19 Thread Kern Sibbald
On Saturday 19 March 2005 21:22, David Fuchs wrote:
> Kern Sibbald wrote:
> >Hello,
> >
> >On Friday 18 March 2005 23:56, David Fuchs wrote:
> >>Hello,
> >>
> >> I've been trying to configure a FileSet that will only back up
> >>specific file extensions, but I seem to be misunderstanding the syntax of
> >>the FileSet records.
> >>
> >> By searching the archives, I found the following FileSet example
> >>from someone else in the same situation.  In my effort to back up only
> >>certain file extensions (and exclude everything else by default) I came
> >> up with a very similar FileSet definition myself (only I'm specifying
> >> tarballs instead of M$ Office documents):
> >
> >It was probably me who proposed something like the following.  I suspect
> > it never worked because contrary to what I thought the exclude = yes
> > matches nothing.  So,  I have two suggestions that may work:
> >
> >1. Add a
> > wild = "*"
> >   just after the exclude = yes
> >
> >2. Alternatively, and probably better, add a
> >
> >regex = ".?*$"

Well, it looks like I made a small typo here (rather my International keyboard 
bit me).  It should be:

  regex = "^.?*$"

However, life is never so simple; even that is wrong.  Why? because it 
excludes everything even /home/df/test. The correct solution is to use:

 RegexFile = "^.?*$"

which excludes all files but not the directories.

So the complete correct FileSet *should* be:

FileSet {
  Name = "Test Set"
  Include {
Options {
WildFile = *.tar.gz
signature = MD5
compression = GZIP
}
Options {
exclude = yes
RegexFile = "^.?*$"
}
File = /home/df/test
  }
}

With the above, Bacula will backup all your *.tar.gz files as well as all the 
directories (no files) including and under /home/df/test.  It is probably 
better to let the directories to be backed up so that if a file is restored, 
all the directories leading down to it are also restored with the proper 
owners/permissions.

Note, Regex/RegexFile/RegexDir do not work on Win32 systems since it is not in 
the Microsoft libraries, and I haven't take the time to dig out the source 
code and include it in Bacula.

> >
> >   just after the exclude = yes.
> >
> >I would be interested to know if this works or not.
>
> Thank-you for your message Kern.  I tried both of your suggestions -
> both seem quite reasonable; however, the first one resulted in no files
> being backed up at all.  The regex in the second suggestion produced
> config errors.  I changed it to:
>
> regex = ".*"
> and I also tried
> regex = "^.*$"
>
> Though both of these resulted in no files being backed up.  I made sure
> to add the wild/regex statements after the exclude = yes, though the
> results were the same no matter where in the Options resource I placed
> them.
>
> It's a curious thing... the wild = * or above regex statements in the
> second Options resource results in no files being backed up at all, yet
> it should not have even read that Options resource with regard to the
> tarballs I'm trying to back up (since those are matched by a previous
> Options Resource).  Here is the latest version of my fileset config
> (which currently results in no files being backed up):
>
> FileSet {
>   Name = "Test Set"
>   Include {
> Options {
> wild = *.tar.gz
> signature = MD5
> compression = GZIP
> }
> Options {
> exclude = yes
> wild = *
> }
> File = /home/df/test
>   }
> }
>
> The directory /home/df/test consists of a combination of regular files,
> tarballs (tar.gz), and directories.
>
> >>"An Options resource that does not contain a wild directive is assumed to
> >>match any filename. This is important to understand, because once Bacula
> >>determine that the Options matches the file under consideration, that
> >>file will be saved without looking at any other Options resources that
> >>may be present."
> >
> >This is why I thought the above would work, but I think in fact that the
> > above is wrong. On the other hand, if one drops out of all the Options,
> > and nothing has matched, then everything is matched, and the Options from
> > the last Options are used (but apparently not the exclude -- I'm going to
> > look into this).
>
> Thanks very much Kern, any other suggestions you or anyone else has are
> much appreciated!
>
> -David Fuchs

-- 
Best regards,

Kern


---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lis

Re: [Bacula-users] FileSet Exclude by Default

2005-03-23 Thread David Fuchs
Kern Sibbald wrote:
It was probably me who proposed something like the following.  I suspect
it never worked because contrary to what I thought the exclude = yes
matches nothing.  So,  I have two suggestions that may work:
1. Add a
   wild = "*"
 just after the exclude = yes
2. Alternatively, and probably better, add a
  regex = ".?*$"
 

Well, it looks like I made a small typo here (rather my International keyboard 
bit me).  It should be:

 regex = "^.?*$"
However, life is never so simple; even that is wrong.  Why? because it 
excludes everything even /home/df/test. The correct solution is to use:

RegexFile = "^.?*$"
which excludes all files but not the directories.
So the complete correct FileSet *should* be:
FileSet {
 Name = "Test Set"
 Include {
   Options {
   WildFile = *.tar.gz
   signature = MD5
   compression = GZIP
   }
   Options {
   exclude = yes
   RegexFile = "^.?*$"
   }
   File = /home/df/test
 }
}
With the above, Bacula will backup all your *.tar.gz files as well as all the 
directories (no files) including and under /home/df/test.  It is probably 
better to let the directories to be backed up so that if a file is restored, 
all the directories leading down to it are also restored with the proper 
owners/permissions.

Note, Regex/RegexFile/RegexDir do not work on Win32 systems since it is not in 
the Microsoft libraries, and I haven't take the time to dig out the source 
code and include it in Bacula.

 

Hi Kern,
Sorry for the late response on this one, I've been away from the 
computer for a few days.

Unfortunately, the changes utilizing WildFile and RegexFile aren't 
producing different results.  Here is the message I received when I 
first made the changes and reloaded the configuration (I copy/pasted the 
provided FileSet):

22-Mar 17:26 davidfuchs-dir: ERROR TERMINATION at inc_conf.c:495
Config error: Regex compile error. ERR=repetition-operator operand invalid
   : line 119, col 35 of file /usr/local/bacula/etc/bacula-dir.conf
   RegexFile = "^.?*$"
So I changed the regex to
   RegexFile = "^.*$"
And it accepted the configuration, but backed up all files.  I also 
tried using 'WildFile = *' after the 'exclude=yes' but got the same results.

I'm using version 1.36.2, which was compiled from source on FreeBSD 
4.10-STABLE (gcc-2.95.4).  Thank-you so far for your assistance, do you 
have any other ideas?  Perhaps I should move to the development version 
and try with that?  (Although I usually prefer keeping with the latest 
stable codebase, it's not a necessity).  Looking forward to your 
response Kern!

Thanks,
-David Fuchs

begin:vcard
fn:David Fuchs
n:Fuchs;David
adr:;;;Langley;BC;;Canada
email;internet:[EMAIL PROTECTED]
note:Aut viam inveniam aut faciam
x-mozilla-html:FALSE
version:2.1
end:vcard



Re: [Bacula-users] FileSet Exclude by Default

2005-03-23 Thread Mike Reinehr
On Tuesday 22 March 2005 07:41 pm, David Fuchs wrote:
> 22-Mar 17:26 davidfuchs-dir: ERROR TERMINATION at inc_conf.c:495
> Config error: Regex compile error. ERR=repetition-operator operand invalid
>
>             : line 119, col 35 of file
> /usr/local/bacula/etc/bacula-dir.conf RegexFile = "^.?*$"
>
> So I changed the regex to
>
>     RegexFile = "^.*$"

David,

The regex that you used "^.*$", in addition to files beginning with "." is 
also picking up  the current directory ".", hence you're backing up all files 
in the directory. The regex that Kern suggested, "^.?*$" requires at least 
one character after the leading "." to avoid this.

I know next to nothing about file exclusions, so this is just a guess, but you 
might try "^.?*" (without the trailing $).

HTH's

cmr
-- 
Debian 'Sarge': Registered Linux User #241964

"More laws, less justice." -- Marcus Tullius Ciceroca, 42 BC



---
This SF.net email is sponsored by: 2005 Windows Mobile Application Contest
Submit applications for Windows Mobile(tm)-based Pocket PCs or Smartphones
for the chance to win $25,000 and application distribution. Enter today at
http://ads.osdn.com/?ad_idh82&alloc_id148&op=click
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] FileSet Exclude by Default

2005-03-23 Thread David Clymer
On Wed, 2005-03-23 at 09:22 -0600, Mike Reinehr wrote:
> On Tuesday 22 March 2005 07:41 pm, David Fuchs wrote:
> > 22-Mar 17:26 davidfuchs-dir: ERROR TERMINATION at inc_conf.c:495
> > Config error: Regex compile error. ERR=repetition-operator operand invalid
> >
> > : line 119, col 35 of file
> > /usr/local/bacula/etc/bacula-dir.conf RegexFile = "^.?*$"
> >

I believe that the problem with this is that this directive is telling
the regex engine two conflicting things regarding the number of times a
character is to be matched.

The '^' symbol is an anchor directive (means (in this context): only
match the following pattern if it starts at the begining of a line)
The '.' symbol is a pattern directive (means: match any character)
The '?' symbol is a repetition directive (means: match the preceding
pattern 0 or 1 times).
The '*' symbol is also a repetition directive (means: match the
preceding pattern any number of times, including 0 times)
The '$' symbol is another anchor directive (means: match the preceding
pattern only if it stops end of a line)

when the regex parser gets to the ?* portion of the regex, it thinks
that it is being told to match a  "0 or 1 times" any number of times,
which doesnt make sense.

You could instead, say "^(.?)*$" which (due to the parentheses) tells
the '*' directive to relate to the whole '.?' pattern rather than the
'?' directive. All this being said, this pattern is a bit redundant.

> > So I changed the regex to
> >
> > RegexFile = "^.*$"

This makes more sense anyway, in regex terms.

It seems like that should have done the trick, but you could always
simplify it even further to ".*" just to make sure, since you are trying
to match everything passed to it, correct?

-davidc

--
If you judge, investigate. -Seneca



---
This SF.net email is sponsored by Microsoft Mobile & Embedded DevCon 2005
Attend MEDC 2005 May 9-12 in Vegas. Learn more about the latest Windows
Embedded(r) & Windows Mobile(tm) platforms, applications & content.  Register
by 3/29 & save $300 http://ads.osdn.com/?ad_id=6883&alloc_id=15149&op=click
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] fileset: second eyes needed

2012-07-25 Thread Clark, Patricia A.
I found this line:
   RegexDir = ".*"
In the exclude options to be the issue.  I've removed it and have been
getting the exact backups required.


Patti Clark
Information International Associates, Inc.
Linux Administrator and subcontractor to:
Research and Development Systems Support Oak Ridge National Laboratory


On 7/25/12 8:34 AM, "Steve Thompson"  wrote:

>Bacula 5.0.2, CentOS 5.8 x86_64.
>
>I need a second pair of eyes on this.
>
>I have a large file system (/mnt/home, 60TB) whose backups are split into
>multiple jobs. Two jobs in particular: one to backup all directories
>whose 
>names begin with "s" except for st123, and a second job to backup just
>st123:
>
>Job {
>   Name = "home_s"
>   JobDefs = "defjob"
>   Pool = Pool_home_s
>   Write Bootstrap = "/var/lib/bacula/home_s.bsr"
>   Client = client-fd
>   FileSet = "home_s"
>   Schedule = "Saturday4"
>}
>
>Job {
>   Name = "home_st123"
>   JobDefs = "defjob"
>   Pool = Pool_home_st123
>   Write Bootstrap = "/var/lib/bacula/home_st123.bsr"
>   Client = client-fd
>   FileSet = "home_st123"
>   Schedule = "Saturday1"
>}
>
>The file sets are as follows:
>
>FileSet {
>   Name = "home_s"
>   Include {
> Options {
>   wilddir = "/mnt/home/s*"
> }
> Options {
>   exclude = yes
>   wilddir = "/mnt/home/st123"
>   RegexDir = ".*"
> }
> Options {
>   compression = GZIP4
>   sparse = yes
>   noatime = yes
> }
> File = /mnt/home
>   }
>}
>
>FileSet {
>   Name = "home_st123"
>   Include {
> Options {
>   compression = GZIP4
>   sparse = yes
>   noatime = yes
> }
> File = /mnt/home/st123
>   }
>}
>
>All is well with the home_st123 job: it backups up only what is expected.
>However, the home_s job backups up only the directories whose name begins
>with "s", but it also backs up st123, which has been excluded. Presumably
>I have the Options clauses incorrectly defined?
>
>TIA,
>
>Steve
>-- 
>--
>--
>Steve Thompson E-mail:  smt AT vgersoft DOT com
>Voyager Software LLC   Web: http://www DOT vgersoft DOT
>com
>39 Smugglers Path  VSW Support: support AT vgersoft DOT com
>Ithaca, NY 14850
>   "186,282 miles per second: it's not just a good idea, it's the law"
>--
>--
>
>--
>
>Live Security Virtual Conference
>Exclusive live event will cover all the ways today's security and
>threat landscape has changed and how IT managers can respond. Discussions
>will include endpoint security, mobile security and the latest in malware
>threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
>___
>Bacula-users mailing list
>Bacula-users@lists.sourceforge.net
>https://lists.sourceforge.net/lists/listinfo/bacula-users


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] fileset: second eyes needed

2012-07-26 Thread Martin Simmons
> On Wed, 25 Jul 2012 08:34:08 -0400 (EDT), Steve Thompson said:
> 
> I have a large file system (/mnt/home, 60TB) whose backups are split into 
> multiple jobs. Two jobs in particular: one to backup all directories whose 
> names begin with "s" except for st123, and a second job to backup just st123:
> ...
> The file sets are as follows:
> 
> FileSet {
>Name = "home_s"
>Include {
>  Options {
>wilddir = "/mnt/home/s*"
>  }
>  Options {
>exclude = yes
>wilddir = "/mnt/home/st123"
>RegexDir = ".*"
>  }
>  Options {
>compression = GZIP4
>sparse = yes
>noatime = yes
>  }
>  File = /mnt/home
>}
> }
> ...
> All is well with the home_st123 job: it backups up only what is expected. 
> However, the home_s job backups up only the directories whose name begins
> with "s", but it also backs up st123, which has been excluded. Presumably
> I have the Options clauses incorrectly defined?

I think you need to split the Options clauses differently.

Bacula scans them in order and accepts/rejects as soon as one matches, so your
first clause matches only the directories whose name begins with "s"
(including st123) and the second clause rejects everything else.

Something like this will work:

FileSet {
   Name = "home_s"
   Include {
 Options {
   exclude = yes
   wilddir = "/mnt/home/st123"
 }
 Options {
   wild = "/mnt/home/s*"
   compression = GZIP4
   sparse = yes
   noatime = yes
 }
 Options {
   exclude = yes
   RegexDir = ".*"
 }
 File = /mnt/home
   }
}

__Martin

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Fileset depending on ClientRunBefore

2007-10-23 Thread Leon Bruno
 

> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf 
> Of Arno Lehmann
> Sent: mercredi 10 octobre 2007 11:22
> To: bacula-users@lists.sourceforge.net
> Subject: Re: [Bacula-users] Fileset depending on ClientRunBefore
> 
> Hi,
> 
> 10.10.2007 05:13,, Troy Daniels wrote::
> > Dan Langille wrote:
> >> On 9 Oct 2007 at 20:05, Leon Bruno wrote:
> >>
> >>> On 9 Oct 2007 at 19:54, Leon Bruno wrote:
> >>>
> >>>> Hi all,
> >>>>
> >>>> One of my job is calling a script to do some databases backup.
> >>>> The fileset is then defined to call that same script 
> with another 
> >>>> parameter that list the backup that has just been done.
> >>>>
> >>>> >From what I've tested, it seems that the fileset is estimated
> >>>>> before the
> >>>> runbefore task. This is preventing my backup because at the time 
> >>>> the fileset is estimated, the backup is not yet done... Is there 
> >>>> any way to tell bacula to do the fileset estimation after the 
> >>>> runbefore task ?
> >>> Have you considered the estimate command in bconsole?
> >>>
> >>> Would that output be useful for you?
> >> Leon wrote:
> >>
> >>> Yes I did the estimate command on the fileset and the 
> result is what 
> >>> I expected. That's why I believe at the time bacula get 
> the list of 
> >>> files to backup, the backup is not yet done, thus the runbefore 
> >>> command is actually executed after the fileset has been estimated.
> >> Please do not reply at the top of the email.
> >>
> >> I do not understand what you need.  From the subject, I think you 
> >> want to create a FileSet from ClientRunBefore.  But I have a hard 
> >> time parsing the content of your email to understand your 
> objective.
> >>
> >> I will guess again: If you are trying to dynamically create a 
> >> FileSet, I suggest reading this URL:
> >>
> >>http://www.bacula.org/rel-manual/Configuring_Director.html
> >>
> >> And search for this test:
> >>
> >> "There are a number of special cases when specifying 
> directories and 
> >> files in a file-list. They are:"
> >>
> >> If that is not what you need, please tell us your goal / 
> objective.  
> >> You are asking how "to do the fileset estimation after the 
> runbefore 
> >> task".  I think you've already decided what the solution is but I 
> >> think some context will help us find a solution for you that will 
> >> work.
> >>
> > 
> > 
> > I might be wrong, but I read this to mean Bruno was having problems 
> > because Bacula builds the fileset/filelist it is going to back up 
> > before it runs the RunBefore job.
> > 
> > However, Bruno's script is designed to do a Database backup 
> first and 
> > then provide the fileset information on where this Backup 
> is stored second.
> > 
> > As far as I know there is no way to control this behavior, 
> I can see a 
> > couple of ways to work around it:
> > 
> > 1) Have the actual Database Backup done as part of an Admin job 
> > scheduled to occur just before the Bacula Backup job runs. 
> If you are 
> > running multiple concurrent jobs this might be hard to implement.
>  >
> > 2) Backup the files to a location you can calculate in 
> advance - For 
> > example, make every days backup get created in a subfolder 
> named after 
> > the date for example. The 'fileset building script' can then easily 
> > pass this folder back to Bacula.
> > 
> > 3) Have the fileset building process run the backup 
> directly first - 
> > No idea whether this would even work, nor exactly how bad 
> an idea it would be.
> 
> This works.
> 
> Basically you create whatever files you need, and output their names.
> 
> Arno
> 
> > Hope this helps,
> > 
> > 
> > Troy.
> > 
> > 

This does work indeed, but that would still be useful to be able to
change that behavior.
However I don't know if that requires a lot of changes in bacula itself.

Thanks all for your help,
Bruno. 

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] FileSet excluding files help

2007-02-28 Thread Julien
You have to put the Exclude=yes at the _beginning_ because first match wins

Chris Sarginson wrote:
> Hi Guys,
>
> I'm trying to get bacula to exclude log files (live and old compressed) 
> and the windows page file, but I'm having a little trouble, IE, it's not 
> doing as I ask it.  As a result I assume I am asking it incorrectly :-)
>
> bacula-mysql 2.0.1 on Centos 4.3
>
> Here is my file set resource, I have tried emulating the config in the 
> manual, in 2 fashions.  If anyone can point me in the correct direction 
> it would be much appreciated.
>
> FileSet {
>Name = "Full Set"
>Include {
>  Options {
>signature = MD5
>onefs = no
>fstype = ext2
>  }
>
> File = /
>}
>Include {
>   Options {
>   wildfile = "access.log"
>   wildfile = "access.log.*.*.gz"
>  wildfile = "access.log.*.*"
>   wildfile = "error.log"
>   Exclude = yes
>   }
>   }
>Exclude {
>  File = /proc
>  File = /tmp
>  File = /.journal
>  File = /.fsck
>}
> }
>
> #Windows File Set
> FileSet {
>Name = "Windows Full Set"
>   Include {
>   Options {
>   signature = MD5
>   onefs = no
>   fstype = ntfs
>   }
>   File = C:/
>   File = D:/
>   }
>   Include {
>   Options {
>   wildfile = "pagefile.sys"
>   wildfile = "*.log"
>   Exclude = yes
>   }
>   }
> }
>
>   


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] FileSet excluding files help

2007-02-28 Thread Chris Sarginson
Hi Julien,

I see, so the snippet should be:

Include {
Options {
Exclude = yes
wildfile = "access.log"
wildfile = "access.log.*.*.gz"
wildfile = "access.log.*.*"
wildfile = "error.log"
}
}

If so, thanks very much for your help.

Chris

Julien wrote:
> You have to put the Exclude=yes at the _beginning_ because first match 
> wins
>
> Chris Sarginson wrote:
>> Hi Guys,
>>
>> I'm trying to get bacula to exclude log files (live and old 
>> compressed) and the windows page file, but I'm having a little 
>> trouble, IE, it's not doing as I ask it.  As a result I assume I am 
>> asking it incorrectly :-)
>>
>> bacula-mysql 2.0.1 on Centos 4.3
>>
>> Here is my file set resource, I have tried emulating the config in 
>> the manual, in 2 fashions.  If anyone can point me in the correct 
>> direction it would be much appreciated.
>>
>> FileSet {
>>Name = "Full Set"
>>Include {
>>  Options {
>>signature = MD5
>>onefs = no
>>fstype = ext2
>>  }
>>
>> File = /
>>}
>>Include {
>> Options {
>> wildfile = "access.log"
>> wildfile = "access.log.*.*.gz"
>>  wildfile = "access.log.*.*"
>> wildfile = "error.log"
>> Exclude = yes
>> }
>> }
>>Exclude {
>>  File = /proc
>>  File = /tmp
>>  File = /.journal
>>  File = /.fsck
>>}
>> }
>>
>> #Windows File Set
>> FileSet {
>>Name = "Windows Full Set"
>> Include {
>> Options {
>> signature = MD5
>> onefs = no
>> fstype = ntfs
>> }
>> File = C:/
>> File = D:/
>> }
>> Include {
>> Options {
>> wildfile = "pagefile.sys"
>> wildfile = "*.log"
>> Exclude = yes
>> }
>> }
>> }
>>
>>   
>


-- 
Kind Regards,

Chris Sarginson
Technical Support
UKFast.Net Ltd

(t) 0870 111 8866
(f) 0870 458 4545
(e) [EMAIL PROTECTED]

"The UK's Best Business Host" 2007
"The UK's Best Hosting Provider" 2006 and 2005
 
Dedicated Servers - Managed Hosting - Domain Names- http://www.ukfast.net
 
UKFast.Net Ltd,  Abbey House,  32 Booth Street,  Manchester,  M2 4AB
Registered in England. Number 384 5616
 


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] FileSet excluding files help

2007-02-28 Thread Julien
Yes, for example I have the following lines in my bacula-dir.conf :

278 FileSet {
279 Name = rivendell-fs
280
281 Include {
282
283 Options {
284 IgnoreCase = yes
285 Exclude = yes
286 @/etc/bacula/excludes/global
287 }
288
289 Options {
290 compression = GZIP6
291 IgnoreCase = no
292 signature = MD5
293 recurse = yes
294 onefs = yes
295 }
296  
297 @/etc/bacula/includes/global
298 @/etc/bacula/includes/rivendell
299 }
300
301 Exclude {
302 File = core
303 }
304 }

if lines 283-287 were after line 299 it would not work.

Regards,
Julien

Chris Sarginson wrote:
> Hi Julien,
>
> I see, so the snippet should be:
>
> Include {
> Options {
> Exclude = yes
> wildfile = "access.log"
> wildfile = "access.log.*.*.gz"
> wildfile = "access.log.*.*"
> wildfile = "error.log"
> }
> }
>
> If so, thanks very much for your help.
>
> Chris
>
> Julien wrote:
>   
>> You have to put the Exclude=yes at the _beginning_ because first match 
>> wins
>>
>> Chris Sarginson wrote:
>> 
>>> Hi Guys,
>>>
>>> I'm trying to get bacula to exclude log files (live and old 
>>> compressed) and the windows page file, but I'm having a little 
>>> trouble, IE, it's not doing as I ask it.  As a result I assume I am 
>>> asking it incorrectly :-)
>>>
>>> bacula-mysql 2.0.1 on Centos 4.3
>>>
>>> Here is my file set resource, I have tried emulating the config in 
>>> the manual, in 2 fashions.  If anyone can point me in the correct 
>>> direction it would be much appreciated.
>>>
>>> FileSet {
>>>Name = "Full Set"
>>>Include {
>>>  Options {
>>>signature = MD5
>>>onefs = no
>>>fstype = ext2
>>>  }
>>>
>>> File = /
>>>}
>>>Include {
>>> Options {
>>> wildfile = "access.log"
>>> wildfile = "access.log.*.*.gz"
>>>  wildfile = "access.log.*.*"
>>> wildfile = "error.log"
>>> Exclude = yes
>>> }
>>> }
>>>Exclude {
>>>  File = /proc
>>>  File = /tmp
>>>  File = /.journal
>>>  File = /.fsck
>>>}
>>> }
>>>
>>> #Windows File Set
>>> FileSet {
>>>Name = "Windows Full Set"
>>> Include {
>>> Options {
>>> signature = MD5
>>> onefs = no
>>> fstype = ntfs
>>> }
>>> File = C:/
>>> File = D:/
>>> }
>>> Include {
>>> Options {
>>> wildfile = "pagefile.sys"
>>> wildfile = "*.log"
>>> Exclude = yes
>>> }
>>> }
>>> }
>>>
>>>   
>>>   
>
>
>   


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] FileSet estimate listing sorting

2018-09-23 Thread Kern Sibbald

Hello,

Direct the output the estimate listing to a file, then sort it any way 
you want.


Best regards,
Kern

On 09/22/2018 11:00 AM, George via Bacula-users wrote:

Hi,

I can't understand how the list of files output by
estimate listing are sorted. They are neither sorted
by their date, nor by their (path)name.

Is there a way to tell Bacula to sort them in a
particular way? Or (if not) does anyone else think
that it would be a useful feature?





___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] FileSet estimate listing sorting

2018-09-23 Thread George Anchev via Bacula-users
On Sun, 23 Sep 2018 10:42:20 +0200 Kern Sibbald wrote:

> Direct the output the estimate listing to a file,
> then sort it any way you want.

I actually do this but I am afraid it is not that
simple because sorting it e.g. by filename (including
path) or by date would require additional scripting.
Hence the whole question.

I was hoping that the listing could be sorted by
Bacula itself.

--
George


___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] FileSet estimate listing sorting

2018-09-24 Thread Dan Langille
> On Sep 23, 2018, at 5:27 AM, George Anchev via Bacula-users 
>  wrote:
> 
> On Sun, 23 Sep 2018 10:42:20 +0200 Kern Sibbald wrote:
> 
>> Direct the output the estimate listing to a file,
>> then sort it any way you want.
> 
> I actually do this but I am afraid it is not that
> simple because sorting it e.g. by filename (including
> path) or by date would require additional scripting.
> Hence the whole question.
> 
> I was hoping that the listing could be sorted by
> Bacula itself.

What use cases exist for sorting the estimate?




___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] FileSet estimate listing sorting

2018-09-25 Thread George Anchev via Bacula-users
On Mon, 24 Sep 2018 19:19:42 -0400 Dan Langille wrote:

> What use cases exist for sorting the estimate?

I don't know. Personally I would like to be able to
sort by general file system attributes:

- file name
- full path name
- date (ctime, mtime, maybe also "last backed up")
- (perhaps also): permissions/acl, xattr

--
George


___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] FileSet estimate listing sorting

2018-09-25 Thread Radosław Korzeniewski
Hello,

wt., 25 wrz 2018 o 10:54 George Anchev via Bacula-users <
bacula-users@lists.sourceforge.net> napisał(a):

> On Mon, 24 Sep 2018 19:19:42 -0400 Dan Langille wrote:
>
> > What use cases exist for sorting the estimate?
>
> I don't know. Personally I would like to be able to
> sort by general file system attributes:
>
> - file name
> - full path name
> - date (ctime, mtime, maybe also "last backed up")
> - (perhaps also): permissions/acl, xattr
>
>
It is extremely simpler to make a sort outside then inside Bacula. Sorting
inside Bacula would consume resources which is not what you want.
External sorting require some additional scripting which you can do in a
few minutes then you can add some filtering if you wish. You can even load
all estimation data to database and do sorting, filtering, aggregation, etc.
Possibilities are endless and limited by your imagination.

Developing this kind of functionality inside Bacula require a lot of effort
and time. If you want to contribute a such functionality, you are welcome.

best regards
-- 
Radosław Korzeniewski
rados...@korzeniewski.net
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] FileSet estimate listing sorting

2018-09-25 Thread George Anchev via Bacula-users
On Tue, 25 Sep 2018 14:38:27 +0200 Radosław
Korzeniewski wrote:

> Possibilities are endless and limited by your
> imagination.

Actually by my lack of knowledge (otherwise I wouldn't
really ask). I know how to filter things a little bit
with sed + regex but I am not sure for example how to
sort by full path name preserving all the other
columns displayed by `estimate listing`. I suppose
that is out of the scope of the current mailing list.

--
George


___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] FileSet estimate listing sorting

2018-09-26 Thread Radosław Korzeniewski
Hello,

wt., 25 wrz 2018 o 17:19 George Anchev via Bacula-users <
bacula-users@lists.sourceforge.net> napisał(a):

> On Tue, 25 Sep 2018 14:38:27 +0200 Radosław
> Korzeniewski wrote:
>
> > Possibilities are endless and limited by your
> > imagination.
>
> Actually by my lack of knowledge (otherwise I wouldn't
> really ask). I know how to filter things a little bit
> with sed + regex but I am not sure for example how to
> sort by full path name preserving all the other
> columns displayed by `estimate listing`. I suppose
> that is out of the scope of the current mailing list.
>

to sort:
$ man sort

to filer by regex:
$ man grep

to make a single line batch use '|'

best regards
-- 
Radosław Korzeniewski
rados...@korzeniewski.net
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] FileSet estimate listing sorting

2018-09-26 Thread George Anchev via Bacula-users
On Wed, 26 Sep 2018 14:08:22 +0200 Radosław
Korzeniewski wrote:

> $ man sort
> $ man grep

I am not completely new to those but don't know how to
sort e.g. by full path name while still preserving the
data before it (as listed by 'estimate listing').
Surely eliminating the dates and permissions would
allow that but I still want to see all the data for
each file.

--
George


___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] FileSet estimate listing sorting

2018-09-26 Thread Tilman Schmidt
Am 26.09.2018 um 15:36 schrieb George Anchev via Bacula-users:
> On Wed, 26 Sep 2018 14:08:22 +0200 Radosław
> Korzeniewski wrote:
> 
>> $ man sort
>> $ man grep
> 
> I am not completely new to those but don't know how to
> sort e.g. by full path name while still preserving the
> data before it (as listed by 'estimate listing').

That's why Radosław directed you to the manpage of the sort(1) command.
If you read it you'll find it contains an extensive description of how
to select the part of the input lines by which they should be sorted.
Just try it.


___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] FileSet estimate listing sorting

2018-09-26 Thread George Anchev via Bacula-users
On Wed, 26 Sep 2018 15:51:20 +0200 Tilman Schmidt
wrote:

> Just try it.

OK. Thanks.

--
George


___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Fileset manipulation by job

2009-09-16 Thread Joseph L. Casale
>> a RunScript parameter has a %l to pass the Job Level on
>Hey, that sounds interesting, I did note eaven know that, can you point
>me to the on line documentation where I could find more about that?

Hannes,
The area in the docs is under the Director Config Job Resource:
http://www.bacula.org/3.0.x-manuals/en/install/install/Configuring_Director.html#SECTION0063


What I should have mentioned in my earlier email was that although bacula
should be deciding what Job Level to perform, I had a special need that I
resolved by changing the client script to make more sense. I'll keep an eye
on how the next couple weeks go...

Thanks,
jlc

--
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Fileset manipulation by job

2009-09-16 Thread Hannes Gruber
Juche Joseph,

> a RunScript parameter has a %l to pass the Job Level on
Hey, that sounds interesting, I did note eaven know that, can you point
me to the on line documentation where I could find more about that?

Hannes


--
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] FileSet for Windows 7

2010-09-02 Thread Ulrich Leodolter
Hi,


On Mon, 2010-08-30 at 14:08 +0200, Ralph Kutschera wrote:
> Hallo!
> 
>I'd like to kindly ask if someone could post a reasonable Windows 7 
> FileSet!
> 

We us this since a few days do backup desktop workstations.
C:/bacula_include.txt may contain extra drives (e.g. D:/)
We exclude junction points to avoid warnings.

FileSet {
  Name = "FullWin7Set"
  Ignore FileSet Changes = yes
  Include {
Options {
  compression = GZIP
  signature = SHA1
  IgnoreCase = yes
  Exclude = yes
  
  # Exclude junction points
  WildDir = "[A-Z]:/Dokumente und Einstellungen"
  WildDir = "[A-Z]:/Documents and Settings"
  WildDir = "[A-Z]:/Program Files/Gemeinsame Dateien"
  WildDir = "[A-Z]:/Program Files/Windows NT/Zubehör"
  WildDir = "[A-Z]:/ProgramData/Anwendungsdaten"
  WildDir = "[A-Z]:/ProgramData/Application Data"
  WildDir = "[A-Z]:/ProgramData/Desktop"
  WildDir = "[A-Z]:/ProgramData/Documents"
  WildDir = "[A-Z]:/ProgramData/Dokumente"
  WildDir = "[A-Z]:/ProgramData/Favoriten"
  WildDir = "[A-Z]:/ProgramData/Favorites"
  WildDir = "[A-Z]:/ProgramData/Microsoft/Windows/Start Menu/Programme"
  WildDir = "[A-Z]:/ProgramData/Start Menu"
  WildDir = "[A-Z]:/ProgramData/Startmenü"
  WildDir = "[A-Z]:/ProgramData/Templates"
  WildDir = "[A-Z]:/ProgramData/Vorlagen"
  WildDir = "[A-Z]:/Programme"
  WildDir = "[A-Z]:/Documents and Settings"
  WildDir = "[A-Z]:/Users/All Users"
  WildDir = "[A-Z]:/Users/Default User"
  WildDir = "[A-Z]:/Users/*/AppData/Local/Application Data"
  WildDir = "[A-Z]:/Users/*/AppData/Local/Anwendungsdaten"
  WildDir = "[A-Z]:/Users/*/AppData/Local/History"
  WildDir = "[A-Z]:/Users/*/AppData/Local/Verlauf"
  WildDir = "[A-Z]:/Users/*/AppData/Local/Temporary Internet Files"
  WildDir = "[A-Z]:/Users/*/Application Data"
  WildDir = "[A-Z]:/Users/*/Anwendungsdaten"
  WildDir = "[A-Z]:/Users/*/Gemeinsame Dateien"
  WildDir = "[A-Z]:/Users/*/Cookies"
  WildDir = "[A-Z]:/Users/*/Documents/My Music"
  WildDir = "[A-Z]:/Users/*/Documents/Eigene Musik"
  WildDir = "[A-Z]:/Users/*/Documents/My Pictures"
  WildDir = "[A-Z]:/Users/*/Documents/Eigene Bilder"
  WildDir = "[A-Z]:/Users/*/Documents/My Videos"
  WildDir = "[A-Z]:/Users/*/Documents/Eigene Videos"
  WildDir = "[A-Z]:/Users/*/Local Settings"
  WildDir = "[A-Z]:/Users/*/Lokale Einstellungen"
  WildDir = "[A-Z]:/Users/*/My Documents"
  WildDir = "[A-Z]:/Users/*/Eigene Dateien"
  WildDir = "[A-Z]:/Users/*/NetHood"
  WildDir = "[A-Z]:/Users/*/Netzwerkumgebung"
  WildDir = "[A-Z]:/Users/*/PrintHood"
  WildDir = "[A-Z]:/Users/*/Druckumgebung"
  WildDir = "[A-Z]:/Users/*/Recent"
  WildDir = "[A-Z]:/Users/*/SendTo"
  WildDir = "[A-Z]:/Users/*/Start Menu"
  WildDir = "[A-Z]:/Users/*/Startmenü"
  WildDir = "[A-Z]:/Users/*/Templates"
  WildDir = "[A-Z]:/Users/*/Vorlagen"

  # Temporary directories & files
  WildDir = "[A-Z]:/Windows/Temp"
  WildDir = "[A-Z]:/Users/*/AppData/Local/Mozilla/Firefox/Profiles/*/Cache"

  # Recycle bins
  WildDir = "[A-Z]:/$Recycle.Bin"
  
  # Swap files
  WildFile = "[A-Z]:/pagefile.sys"
}
ExcludeDirContaining = "bacula_exclude.dir"
File = "C:/"
File = "\\ Sincerely,
>Ralph
> 
> 
> --
> Sell apps to millions through the Intel(R) Atom(Tm) Developer Program
> Be part of this innovative community and reach millions of netbook users 
> worldwide. Take advantage of special opportunities to increase revenue and 
> speed time-to-market. Join now, and jumpstart your future.
> http://p.sf.net/sfu/intel-atom-d2d
> ___
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
> 

-- 
Ulrich Leodolter 
Oesterreichische Bibliothekenverbund und Service GmbH
Bruennlbadgasse 17/2A, A-1090 Wien
Fax +43 1 4035158-30
Tel +43 1 4035158-21
Web http://www.obvsg.at


--
This SF.net Dev2Dev email is sponsored by:

Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Fileset Difficulties -- help please

2011-04-22 Thread Hugo Letemplier
2011/4/21 Hugo Letemplier :
> Hi
>
> I am having a Mac OSX File server where users home are stored.
> Before having a powerfull mail server that stores all the content of
> my emails, I store all the Microsoft Entourage Mailbox on this file
> server.
> Theses mailbox must be backed up separately from the rest of my
> server. Indeed, mailboxes size can reach some Gigabytes and it's an
> archive format (not a maildir) so at every backup a new big file need
> to be saved.
>
> the path to my mailboxes is :
>
> /FileServer//Documents/*/Office 2004//My Database
>
> I have to create 2 filessets. One that includes only the Mail database
> One that contains the rests of the user home directory.
> Also, I have an option section that select some files that must no be
> compressed but it doesn't work:
>
> FileSet {
>        Name = "FileServer"
>        Include {
>             Options {
>
> regexfile='^.*\.(mp3|mp2|m4a|wma|flac|ogg|cda|aac|zip|lzh|rar|7z|gz|jar|bz|bz2|arj|deb|msi|pkg|tgz|ico|tif|gif|jpg|jpeg|png|gif|rpm|avi|vob|mkv|flv|mpg|mpeg|divx|wmv|avi|mp4|mov|qt)'
>                    exclude = no
>                    HFSPlus Support = yes
>                    Signature = MD5
>                    ACL Support = yes
>             }
>            Options {
>                   compression = GZIP3
>                   HFSPlus Support = yes
>                   Signature = MD5
>                   ACL Support = yes
>            }
>            File = "/FileServer"
>    }
>    Exclude {
>        File = "/FileServer/*/Office 2004"
>        File = "/FileServer/*/Identit*s Office 2008/*My Database"
>        File = */.DS_Store
>        File = */.Spotlight-V100
>        File = */.TemporaryItems
>    }
> }
>
> FileSet {
>        Name = "FileServer-Mailbox"
>        Include {
>        Options {
>            compression = GZIP6
>            HFSPlus Support = yes
>            Signature = MD5
>            ACL Support = yes
>            wild = "/FileServer/*/Office 2004/*My Database"
>            wild = "/FileServer/*/Identit*s Office 2008/*My Database"
>        }
>
>        File = "/FileServer"
>    }
>    Exclude {
>        File = */.DS_Store
>        File = */.Spotlight-V100
>        File = */.TemporaryItems
>    }
> }
>
> I have tried many times with regexp and wild but it never did that as I wish.
>
> Have you got an idea ?
>
> Thanks
>
> Hugo
>

Hi

I precise my problem,

I succeeded for the fileset that exclude the Mailboxes I got this :

FileSet {
Name = "FileServer"
 Ignore Fileset Changes = yes
Include {
  Options {
  regexfile=
"^.*\.(mp3|mp2|m4a|wma|flac|ogg|cda|aac|zip|lzh|rar|7z|gz|jar|bz|bz2|arj|deb|msi|pkg|tgz|ico|tif|gif|jpg|jpeg|png|gif|rpm|avi|vob|mkv|flv|mpg|mpeg|divx|wmv|avi|mp4|mov|qt)"
exclude = no
HFSPlus Support = yes
Signature = MD5
ACL Support = yes
xattrsupport = yes
}
Options {
compression = GZIP3
exclude = no
   HFSPlus Support = yes
Signature = MD5
ACL Support = yes
xattrsupport = yes
}
Options {
Signature = MD5
ACL Support = yes
HFSPlus Support = yes
xattrsupport = yes
IgnoreCase = yes
regex = "/FileServer/.*/Utilisateurs Office 2004/Identit.*
principale/.*"
regex = "/FileServer/.*/Identit.*s Office
2008/Identit.* principale/.*"
exclude = yes
}
File = "/FileServer"
}
Exclude {
File = */.DS_Store
File = */.Spotlight-V100
File = */.TemporaryItems
}
}


I still got the problem to write the other one. :-(
I am still failing in only including files that match the following
regex
regex = "/FileServer/.*/Utilisateurs Office 2004/Identit.* principale/.*"
regex = "/FileServer/.*/Identit.*s Office 2008/Identit.* principale/.*"

Thank you

--
Fulfilling the Lean Software Promise
Lean software platforms are now widely adopted and the benefits have been 
demonstrated beyond question. Learn why your peers are replacing JEE 
containers with lightweight application servers - and what you can gain 
from the move. http://p.sf.net/sfu/vmware-sfemails
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Fileset generated by awk

2011-05-10 Thread Jérôme Blion

Le 10/05/2011 11:56, Jérôme Blion a écrit :

Hello,

I have to backup machines which have been configured different ways 
for the same feature. In fact, I want to backup mysql binlogs on a 
hourly basis.

binlogs can be located at different locations:
 /home/mysql
 /usr/local/mysql/data
 /home/binlogs
Depending on the client.

If I use the following Fileset directive,

FileSet {
  Name = "Mysql Binlogs"
  Include {
Options {
  signature = MD5
  wildfile = "*-bin.*"
}
Options {
  Regex = ".*"
  Exclude = yes
}
File = "/home/mysql"
File = "/home/binlogs"
File = "/usr/local/mysql/data"
  }
  Ignore Fileset Changes = yes
}

the backup log contains:

10-mai 05:17 tucana-dir JobId 117: Start Backup JobId 117, 
Job=Backup_aquila1_binlogs.2011-05-10_05.17.00_46

10-mai 05:17 tucana-dir JobId 117: Using Device "FileStorage"
10-mai 05:17 tucana-dir JobId 117: Sending Accurate information.
10-mai 05:17 aquila1-fd JobId 117:  Could not stat 
"/home/binlogs": ERR=No such file or directory
10-mai 05:17 aquila1-fd JobId 117:  Could not stat 
"/usr/local/mysql/data": ERR=No such file or directory
10-mai 05:17 tucana-sd JobId 117: Job write elapsed time = 00:00:03, 
Transfer rate = 5.502 M Bytes/second
10-mai 05:17 tucana-dir JobId 117: Bacula tucana-dir 5.0.2 (28Apr10): 
10-mai-2011 05:17:06

  [...]
  Non-fatal FD errors:2
  SD Errors:  0
  FD termination status:  OK
  SD termination status:  OK
  Termination:Backup OK -- with warnings

I would like to tune my Fileset definition to avoid these non-fatal 
errors.
If I run the following command on the client, I'm sure to get the 
correct path to backup:


`awk '{ if($1 ~ /^log[-_]bin/ && NF==3) logfile=$3; else if($1 ~ 
/^datadir/) datadir=$3 } END { if (logfile != NULL) print "dirname " 
logfile; else print "echo " datadir }' /etc/mysql/my.cnf`


I created /tmp/binlogs.sh:

8<--
#!/bin/bash

`awk '{ if($1 ~ /^log[-_]bin/ && NF==3) logfile=$3; else if($1 ~ 
/^datadir/) datadir=$3 } END { if (logfile != NULL) print "dirname " 
logfile; else print "echo " datadir }' /etc/mysql/my.cnf`

--->8

If I set File = "\\| /tmp/binlogs.sh" the backup runs fine.
I would like to use the awk command directly in the Fileset directive.
Any time I use a backquote, the command fails and my backup does not work.

My last attempt was: File = "\\| bash -c \"`/usr/bin/awk '{ if(\$1 ~ 
/^log[-_]bin/ && NF==3) logfile=\$3; else if(\$1 ~ /^datadir/) 
datadir=\$3 } END { if (logfile != NULL) print \"dirname \" logfile; 
else print \"echo \" datadir }' /etc/mysql/my.cnf`\""
I tried with: File = "\\| bash -c \"\`/usr/bin/awk '/datadir/ {print 
\"echo \" \$3}' /etc/mysql/my.cnf\`\" " without success.


aquila1:~#  bash -c "`/usr/bin/awk '/datadir/ {print "echo " $3}' 
/etc/mysql/my.cnf`"

/home/mysql
aquila1:~# bash -c "`awk '{ if($1 ~ /^log[-_]bin/ && NF==3) 
logfile=$3; else if($1 ~ /^datadir/) datadir=$3 } END { if (logfile != 
NULL) print "dirname " logfile; else print "echo " datadir }' 
/etc/mysql/my.cnf`"

/home/mysql

10-mai 11:17 aquila1-fd JobId 149: Fatal error: Error running program: 
bash -c "`/usr/bin/awk '/datadir/ {print "echo " $3}' 
/etc/mysql/my.cnf`". stat=2: ERR=Child exited with code 2
10-mai 10:31 aquila1-fd JobId 144: Fatal error: Error running program: 
bash -c "`/usr/bin/awk '{ if($1 ~ /^log[-_]bin/ && NF==3) logfile=$3; 
else if($1 ~ /^datadir/) datadir=$3 } END { if (logfile != NULL) print 
"dirname " logfile; else print "echo " datadir }' /etc/mysql/my.cnf`". 
stat=2: ERR=Child exited with code 2


What could I try to perform what I want ?

Best regards.
Jerome Blion.


As usual, I found the solution just after sending this mail:

FileSet {
  Name = "Mysql Binlogs"
  Include {
Options {
  signature = MD5
  wildfile = "*-bin.*"
}
Options {
  Regex = ".*"
  Exclude = yes
}
File = "\\| awk '{ if(\$1 ~ /^log[-_]bin/ && NF==3) lf=\$3; else 
if(\$1 ~ /^datadir/) dd=\$3 } END { if (lf != NULL) system(\"dirname \" 
lf); else system(\"echo \" dd) }' /etc/mysql/my.cnf"

  }
  Ignore Fileset Changes = yes
}

HTH.
Jérôme Blion.

--
Achieve unprecedented app performance and reliability
What every C/C++ and Fortran developer should know.
Learn how Intel has extended the reach of its next-generation tools
to help boost performance applications - inlcuding clusters.
http://p.sf.net/sfu/intel-dev2devmay___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Fileset generated by awk

2011-05-10 Thread John Doe
From: Jérôme Blion 
>I have to backup machines which have been configured different ways for 
>the 

>same feature. In fact, I want to backup mysql binlogs on a hourly basis.
>binlogs can be located at different locations: 
> /home/mysql
> /usr/local/mysql/data
> /home/binlogs
>Depending on the client.

Not a direct answer but...
what about creating hard links so that all servers have a common unique path 
and 
use hardlinks=no?
Wouldn't that work?

JD

--
Achieve unprecedented app performance and reliability
What every C/C++ and Fortran developer should know.
Learn how Intel has extended the reach of its next-generation tools
to help boost performance applications - inlcuding clusters.
http://p.sf.net/sfu/intel-dev2devmay
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] FileSet Question (related to snapshots)

2011-10-31 Thread Christian Manal
Am 29.10.2011 01:12, schrieb Blake Dunlap:
> Greetings,
> 
> Minor question, figured I'd try the users list first in case you guys could
> help. I have the following directory structure on a server that I back up,
> but there's a minor twist:
> 
> FileSet {
>   Name = "filemonster-fs"
>   Include {
> *snip*
> 
> File = /etc
> File = /usr/local/sbin
> File = /snapshot/webdata
>   }
> *snip*
> 
> }
> 
> 
> That snapshot directory (/snapshot/webdata) is actually a mounted snapshot
> of /data. Ideally, I would like bacula to store this as the actual path, and
> not the path it gets backed up from. It would greatly simplify restores
> among other things.
> 
> I know there is the option of stripping X pieces of the path from a fileset,
> but it is fileset wide to my knowledge. Is the best practice to just add a
> snapshot dir to the beginning and keep the same path structure, and have a
> seperate FileSet for each such item?
> 
> The reason I ask is I am also considering adding a PathReplace directive (or
> something similar) to facilitate the above, and I want to judge input first,
> and see if there is a better design option.
> 
> 
> -Blake

Hi,

I have something similar. I take most of my backups from ZFS snapshots,
which means I have '.zfs/snapshot/backup/' in in the middle of all my
paths. To restore from that, I use 'RegexWhere' in my restore job
definition, to snip that part out.


Regards,
Christian Manal

--
Get your Android app more play: Bring it to the BlackBerry PlayBook 
in minutes. BlackBerry App World™ now supports Android™ Apps 
for the BlackBerry® PlayBook™. Discover just how easy and simple 
it is! http://p.sf.net/sfu/android-dev2dev
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] FileSet MD5 digest not found

2013-01-10 Thread Martin Simmons
> On Tue, 08 Jan 2013 10:56:16 -0500, Dan Langille said:
> 
> When running copy jobs on 5.2.12, I see this:
> 
> 08-Jan 15:49 bacula-dir JobId 116746: Warning: FileSet MD5 digest not 
> found.
> 08-Jan 15:49 bacula-dir JobId 116746: The following 48 JobIds were 
> chosen to be copied: 
> 116360,116426,116427,116429,116431,116434,116428,116430,116432,116435,116433,116436,116438,116446,116451,116453,116439,116447,116440,116448,116449,116443,116444,116445,116608,116609,116611,116613,116616,116610,116612,116614,116617,116615,116618,116620,116628,116633,116635,116621,116625,116629,116634,116622,116626,116630,116627,116631
> 08-Jan 15:49 bacula-dir JobId 116747: Warning: FileSet MD5 digest not 
> found.
> 08-Jan 15:49 bacula-dir JobId 116747: Copying using JobId=116360 
> Job=dent.2013-01-05_23.30.00_53
> 08-Jan 15:49 bacula-dir JobId 116747: Bootstrap records written to 
> /home/bacula/working/bacula-dir.restore.83.bsr
> 08-Jan 15:49 bacula-dir JobId 116746: Job queued. JobId=116747
> 08-Jan 15:49 bacula-dir JobId 116746: Copying JobId 116747 started.
> 08-Jan 15:49 bacula-dir JobId 116749: Warning: FileSet MD5 digest not 
> found.
> 
> 
> That message seems to be present for each job it starts: Warning: 
> FileSet MD5 digest not found.
> 
> I'm quite sure that each FilSet has:
> 
>  Options {
>signature=MD5
>  }
> 
> Some might even have:
> 
>  Options {
>signature=MD5
>  verify=pnugsmcs5
>  }
> 
> 
> Ideas?

Can you post the whole fileset?

__Martin

--
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122712
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] FileSet MD5 digest not found

2013-01-10 Thread Dan Langille
On 2013-01-10 08:17, Martin Simmons wrote:
>> On Tue, 08 Jan 2013 10:56:16 -0500, Dan Langille said:
>>
>> When running copy jobs on 5.2.12, I see this:
>>
>> 08-Jan 15:49 bacula-dir JobId 116746: Warning: FileSet MD5 digest 
>> not
>> found.
>> 08-Jan 15:49 bacula-dir JobId 116746: The following 48 JobIds were
>> chosen to be copied:
>> 
>> 116360,116426,116427,116429,116431,116434,116428,116430,116432,116435,116433,116436,116438,116446,116451,116453,116439,116447,116440,116448,116449,116443,116444,116445,116608,116609,116611,116613,116616,116610,116612,116614,116617,116615,116618,116620,116628,116633,116635,116621,116625,116629,116634,116622,116626,116630,116627,116631
>> 08-Jan 15:49 bacula-dir JobId 116747: Warning: FileSet MD5 digest 
>> not
>> found.
>> 08-Jan 15:49 bacula-dir JobId 116747: Copying using JobId=116360
>> Job=dent.2013-01-05_23.30.00_53
>> 08-Jan 15:49 bacula-dir JobId 116747: Bootstrap records written to
>> /home/bacula/working/bacula-dir.restore.83.bsr
>> 08-Jan 15:49 bacula-dir JobId 116746: Job queued. JobId=116747
>> 08-Jan 15:49 bacula-dir JobId 116746: Copying JobId 116747 started.
>> 08-Jan 15:49 bacula-dir JobId 116749: Warning: FileSet MD5 digest 
>> not
>> found.
>>
>>
>> That message seems to be present for each job it starts: Warning:
>> FileSet MD5 digest not found.
>>
>> I'm quite sure that each FilSet has:
>>
>>  Options {
>>signature=MD5
>>  }
>>
>> Some might even have:
>>
>>  Options {
>>signature=MD5
>>  verify=pnugsmcs5
>>  }
>>
>>
>> Ideas?
>
> Can you post the whole fileset?

Sure.  This one is an example from jobid = 116360

FileSet {
   Name = "dent files"
   Include {
 Options {
   signature=MD5
 verify=pnugsmcs5
 }
 Exclude Dir Containing = .NOBACKUP

 File = /Users/dan
   }
   Exclude {
 File = *~
   }
}


-- 
Dan Langille - http://langille.org/

--
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122712
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] FileSet MD5 digest not found

2013-01-11 Thread Martin Simmons
> On Thu, 10 Jan 2013 11:10:37 -0500, Dan Langille said:
> 
> On 2013-01-10 08:17, Martin Simmons wrote:
> >> On Tue, 08 Jan 2013 10:56:16 -0500, Dan Langille said:
> >>
> >> When running copy jobs on 5.2.12, I see this:
> >>
> >> 08-Jan 15:49 bacula-dir JobId 116746: Warning: FileSet MD5 digest 
> >> not
> >> found.
> >> 08-Jan 15:49 bacula-dir JobId 116746: The following 48 JobIds were
> >> chosen to be copied:
> >> 
> >> 116360,116426,116427,116429,116431,116434,116428,116430,116432,116435,116433,116436,116438,116446,116451,116453,116439,116447,116440,116448,116449,116443,116444,116445,116608,116609,116611,116613,116616,116610,116612,116614,116617,116615,116618,116620,116628,116633,116635,116621,116625,116629,116634,116622,116626,116630,116627,116631
> >> 08-Jan 15:49 bacula-dir JobId 116747: Warning: FileSet MD5 digest 
> >> not
> >> found.
> >> 08-Jan 15:49 bacula-dir JobId 116747: Copying using JobId=116360
> >> Job=dent.2013-01-05_23.30.00_53
> >> 08-Jan 15:49 bacula-dir JobId 116747: Bootstrap records written to
> >> /home/bacula/working/bacula-dir.restore.83.bsr
> >> 08-Jan 15:49 bacula-dir JobId 116746: Job queued. JobId=116747
> >> 08-Jan 15:49 bacula-dir JobId 116746: Copying JobId 116747 started.
> >> 08-Jan 15:49 bacula-dir JobId 116749: Warning: FileSet MD5 digest 
> >> not
> >> found.
> >>
> >>
> >> That message seems to be present for each job it starts: Warning:
> >> FileSet MD5 digest not found.
> >>
> >> I'm quite sure that each FilSet has:
> >>
> >>  Options {
> >>signature=MD5
> >>  }
> >>
> >> Some might even have:
> >>
> >>  Options {
> >>signature=MD5
> >>  verify=pnugsmcs5
> >>  }
> >>
> >>
> >> Ideas?
> >
> > Can you post the whole fileset?
> 
> Sure.  This one is an example from jobid = 116360
> 
> FileSet {
>Name = "dent files"
>Include {
>  Options {
>signature=MD5
>  verify=pnugsmcs5
>  }
>  Exclude Dir Containing = .NOBACKUP
> 
>  File = /Users/dan
>}
>Exclude {
>  File = *~
>}
> }

Strange, that one should have an MD5.

Do you have any filesets with no Include or Exclude options?  That is the only
way I can see it would happen.

__Martin

--
Master HTML5, CSS3, ASP.NET, MVC, AJAX, Knockout.js, Web API and
much more. Get web development skills now with LearnDevNow -
350+ hours of step-by-step video tutorials by Microsoft MVPs and experts.
SALE $99.99 this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122812
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] FileSet MD5 digest not found

2013-01-11 Thread Dan Langille

On Jan 11, 2013, at 8:34 AM, Martin Simmons wrote:

>> On Thu, 10 Jan 2013 11:10:37 -0500, Dan Langille said:
>> 
>> On 2013-01-10 08:17, Martin Simmons wrote:
 On Tue, 08 Jan 2013 10:56:16 -0500, Dan Langille said:
 
 When running copy jobs on 5.2.12, I see this:
 
 08-Jan 15:49 bacula-dir JobId 116746: Warning: FileSet MD5 digest 
 not
 found.
 08-Jan 15:49 bacula-dir JobId 116746: The following 48 JobIds were
 chosen to be copied:
 
 116360,116426,116427,116429,116431,116434,116428,116430,116432,116435,116433,116436,116438,116446,116451,116453,116439,116447,116440,116448,116449,116443,116444,116445,116608,116609,116611,116613,116616,116610,116612,116614,116617,116615,116618,116620,116628,116633,116635,116621,116625,116629,116634,116622,116626,116630,116627,116631
 08-Jan 15:49 bacula-dir JobId 116747: Warning: FileSet MD5 digest 
 not
 found.
 08-Jan 15:49 bacula-dir JobId 116747: Copying using JobId=116360
 Job=dent.2013-01-05_23.30.00_53
 08-Jan 15:49 bacula-dir JobId 116747: Bootstrap records written to
 /home/bacula/working/bacula-dir.restore.83.bsr
 08-Jan 15:49 bacula-dir JobId 116746: Job queued. JobId=116747
 08-Jan 15:49 bacula-dir JobId 116746: Copying JobId 116747 started.
 08-Jan 15:49 bacula-dir JobId 116749: Warning: FileSet MD5 digest 
 not
 found.
 
 
 That message seems to be present for each job it starts: Warning:
 FileSet MD5 digest not found.
 
 I'm quite sure that each FilSet has:
 
 Options {
   signature=MD5
 }
 
 Some might even have:
 
 Options {
   signature=MD5
 verify=pnugsmcs5
 }
 
 
 Ideas?
>>> 
>>> Can you post the whole fileset?
>> 
>> Sure.  This one is an example from jobid = 116360
>> 
>> FileSet {
>>   Name = "dent files"
>>   Include {
>> Options {
>>   signature=MD5
>> verify=pnugsmcs5
>> }
>> Exclude Dir Containing = .NOBACKUP
>> 
>> File = /Users/dan
>>   }
>>   Exclude {
>> File = *~
>>   }
>> }
> 
> Strange, that one should have an MD5.
> 
> Do you have any filesets with no Include or Exclude options?  That is the only
> way I can see it would happen.


Ahh, that rings a bell.  Here is the copy job:

FileSet {
  Name = "EmptyCopyToTape"
}

Job {
  Name = "CopyToTape-Inc"
  Type = Copy
  Level= Incremental
  Pool = IncrFile

  FileSet   = "EmptyCopyToTape"

  Client  = kraken-fd
  Schedule= "CopyToTape-Inc"
  Storage = DigitalTapeLibrary
  Messages= Standard

  # don't spool date when backing up to tape from local disk
  Spool Data  = no 
  Spool Attributes = yes

  RunAfterJob  = "/home/dan/bin/dlt-stats-kraken"

  # no sense spooling local data
  Spool Data   = no
  Spool Attributes = yes
  Maximum Concurrent Jobs = 40



  Priority= 410

  Selection Type = SQL Query
  Selection Pattern = "
 SELECT DISTINCT J.JobId, J.StartTime
   FROM Job J, Pool P
   WHERE P.Name = 'IncrFile'
 AND P.PoolId = J.PoolId
 AND J.Type = 'B'
 AND J.JobStatus IN ('T','W')
 AND J.jobBytes > 0
 AND J.JobId NOT IN
 (SELECT PriorJobId
FROM Job
   WHERE Type IN ('B','C')
 AND Job.JobStatus IN ('T','W')
 AND PriorJobId != 0)
ORDER BY J.StartTime
"
}


-- 
Dan Langille - http://langille.org


--
Master HTML5, CSS3, ASP.NET, MVC, AJAX, Knockout.js, Web API and
much more. Get web development skills now with LearnDevNow -
350+ hours of step-by-step video tutorials by Microsoft MVPs and experts.
SALE $99.99 this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122812
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Fileset compression and exclusion bug

2007-01-09 Thread Sebastien Guilbaud


>Should work fine, and is preferable to putting the signature
>at the end of the fileset, which might cause the FD to pickup
>walk off the end of the options into a bunch of garbage with possible
>fatal results.
> 
>You might even put the "signature", "onefs" pair at the end of the
>Options block, which be even more conservative, but always having
>the onefs=yes after the signature=SHA1.

great ! works for me

thanks and have a nice day

-- 
Sébastien Guilbaud

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Fileset Exclude not working - Why ?

2006-01-19 Thread Kern Sibbald
On Thursday 19 January 2006 14:39, Daniel Holtkamp wrote:
> Hi !
>
> This is the Fileset definition:
> FileSet {
>Name = "Fileserver"
>Include {
>  Options {
>  exclude = yes
>  wilddir = "/var/tmp"
>  wilddir = ".recycle"
>  wilddir = "/var/www/intranet/html/support/patches/daily"
>  regexdir = "/var/[cache/man|catman]/[cat?|X11R6/cat?|local/cat?]"
>  compression=GZIP
>  signature=SHA1
>  }
>  File = /
>  File = /home
>  File = /usr
>  File = /var
>}
>Include {
>  Options {
>  exclude = yes
>  wilddir = ".recycle"
>  aclsupport = yes
>  compression=GZIP9
>  signature=SHA1
>  }
>  File = /export
>}
>Include {
>  Options {
>  regexdir = "/var/[cache/man|catman]/[cat?|X11R6/cat?|local/cat?]"
>  keepatime=yes
>  mtimeonly=yes
>  compression=GZIP
>  signature=SHA1
>  }
>  File = /var/tmp
>}
>Exclude {
>  File = .autofsck
>  File = /proc
>  File = /tmp
>  File = .journal
>}
> }
>
> As you can see the ".recycle" directories are to be excluded.
>
> Checking the file-list reveals this:
>
> /export/sekretar/.recycle/winword/clients/xxx/ag/
>
>
> /home/rry/.recycle/useful/
>
>
> /home/rry/.recycle/zip/
>
>
> /home/rry/.recycle/pvr/
>
>
> /home/rry/.recycle/diskette/
>
>
> /home/ickl/.recycle/backup/cvs/
>
>
> /home/ickl/.recycle/backup/
>
>
> /home/bel/.recycle/source/
>
>
> /home/iora/.recycle/Pics/Rio/
>
> (and lots more of course)
>
> Is it because the directories start with a . ?

I don't think so.  More likely it is because a wildcard specification is 
anchored at the beginning of a line unless you start it with a asterisk.  
When you wilddir, don't forget that what you ar matching against is the 
*full* path including a slash at the end.  


As an example (if I remove slashes and periods), if you have a file with a 
name "home-iora-recycle-Pics-Rio" in the current directory and you enter:

"ls recycle"

it is going to print nothing, but if you enter,

"ls *recycle"

it will print

home-iora-recycle-Pics-Rio

It may also print many other filenames that you do not want to see such as

home-abcrecycle-xxx

-- 
Best regards,

Kern

  (">
  /\
  V_V


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Fileset available in Message Resource?

2009-04-03 Thread John Lockard
Nevermind... I'm a moron.

On Fri, Apr 03, 2009 at 02:54:01PM -0400, John Lockard wrote:
> Hi All,
> 
> Looking through the manual in the Message Resource section
> I don't see 'FileSet' as one of the options.  (Version 2.4.4).
> Is this available but undocumented or should I be putting in
> a software change request?
> 
> Reason I ask, is that an email telling me that a job for
> 'Server1' finished isn't nearly as informative to me as
> an email saying that 'Server1:partion2' finished, especially
> when I may also have jobs for 'Server1:partition3' and
> 'Server1:partition4'.
> 
> Thanks,
> John

-- 
Emergency water landing, 600 miles an hour:
   blank faces, calm as Hindu cows. - Tyler Durden
---
 John M. Lockard |  U of Michigan - School of Information
 Unix and Security Admin |  1214 SI North - 1075 Beal Ave.
  jlock...@umich.edu |Ann Arbor, MI  48109-2112
 www.umich.edu/~jlockard | 734-615-8776 | 734-647-8045 FAX
---

--
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Fileset definition for verify oddities

2009-05-28 Thread Arno Lehmann
Hi,

28.05.2009 18:24, Olaf Zevenboom wrote:
> Dear List,
> 
> I have a FileSet defined. This FileSet is used by a backup job and a 
> verify job. However within this FileSet/Verify job there are some oddities.
> Job {
>   Name = "Verify_Zim"
>   Type = Verify
>   Level = VolumeToCatalog
>   Client = zim-fd
>   FileSet = "Full Set"
>   Messages = Standard
>   Storage = "DDS-4"
>   Pool = Default
>   Schedule = "VerifyCycle"
>   Verify Job = "Client_Zim"
> }
> 
> In the FileSet is defined:
> Verify = pins5
> 
> I just want to verify that what was written to tape was written 
> correctly. At the time of backup there are no active users however 
> daemons such as a MTA continue to work obviously.
> 
> I have some question on the following issues.
> a) the verify job seems to  verify against jobID 270 which was (I think) 
> the last time I ran a Verify Init job. I wanted however to run it 
> against the previous backup job (JobId 277). This probably explains 
> oddity #4 below.
> What is going wrong here? The catalog is never updated after an Initial 
> Verify?

No idea, I'm not a big user of verify jobs. But check the manual 
regarding the levels for verify jobs!

> b) Logfiles from daemons are backuped "raw" (without shutting them down) 
> in out setup. I know it's not the best way, but anyway... Can I 
> configure director in such a way that the backupjob backs up everything 
> in the FileSet definition, but does omit certain files/directories when 
> verifying without defining an almost identical second FileSet?
> (the fileset definition is complex, changing it might lead to oddities 
> in the future when a second FileSet has to be maintained too)

I would add another Include {} section to the fileset (before the 
"normal" one!) which only captures the log files, and sets the proper 
verify options. Sth. like
Include {
  Options {
   verify = 
  }
  File = /var/log/messages
  WildFile = /var/log/mail*
  RegExFile = /var/log/httpd/.*_(access|error)_log
}
or similar - the above is untested and not even verified against the 
manual :-)

> This would probably (partly) fix oddities #1, #2 and #5 below.
> 
> c) There are 2 things I simply do not understand at all. Being oddity #3 
> below and the strange sequence of chars in the log in oddity #5 below.
> 
> Running on Debian Etch Bacula backport packages 2.4.1-1~bpo40+1 against 
> MySQL.
> 
> Any remarks & suggestions highly welcomed.
> 
> Thanks in advance,
> Olaf
> 
> 
> Oddities:
> -
> 1. md5 digest differs on files being in use:
> 
> 28-May 00:05 zim-dir JobId 278: File: /var/lib/mysql/bacula/Filename.MYI
> 28-May 00:05 zim-dir JobId 278:   st_size  differ. Cat: 3275776 
> File: 3281920
> 28-May 00:05 zim-dir JobId 278:   MD5 digest differs.

If the size differs, the chance that the checsksum matches is quite small.

> 2. New files

Compared against stale catalog information.

> 28-May 00:05 zim-dir JobId 278: New file: /var/lib/cyrus/proc/2315
> 28-May 00:06 zim-dir JobId 278: New file: 
> /var/lib/postgresql/8.1/main/base/16388/pg_internal.init
> 28-May 00:23 zim-dir JobId 278:   /home/xxx/SUP/xxx/
> 
> 3. New files that are not new at all but are reported to be new by all jobs
> (just 2 files, always the same files, other files in the same directory 
> are not reported)

Don't know... perhaps new inode numbers (I don't know if that's a 
criteria for *this* comparison in a verify job)?

> 28-May 00:07 zim-dir JobId 278: New file: 
> /home/system/subversion/cvs2svn/home/cvs/CVS/xfabric3/xfabric3/jboss-3.0.0alpha/docs/api/security/org/jboss/security/plugins/class-use/JaasSecurityManager.html,v
> 28-May 00:08 zim-dir JobId 278: New file: 
> /home/system/subversion/cvs2svn/home/cvs/CVS/xfabric3/xfabric3/jboss-3.0.0alpha/docs/api/connector/org/jboss/resource/connectionmanager/class-use/BaseConnectionManager.NoTransactionListener.html,v
> 
> 
> 4. New files that were created during the working day such as log files 
> of user applications.
> These are never updated during the backup process as no one works at 
> that time.
> 
> 5. The following files are in the Catalog but not on disk:

Actually, not astonishing as that file belongs to a process instance 
with a specific PID... I wouldn't even back it up as it will be 
useless to restore anyway. This is basically the same problem as item 
a) in your list.

Arno

> 28-May 00:23 zim-dir JobId 278:
>
> 0
> 28-May 00:23 zim-dir JobId 278:
>
> 0
> 28-May 00:23 zim-dir JobId 278:   /var/lib/cyrus/proc/5411
> 


-- 
Arno Lehmann
IT-Service Lehmann
Sandstr. 6, 49080 Osnabrück
www.its-lehmann.de


Re: [Bacula-users] Fileset: How exclude all except...

2011-06-16 Thread Christian Manal
Am 16.06.2011 18:12, schrieb Stuart McGraw:
> I am having some difficulty specifying a fileset.
> 
> I want to exclude all dot files in home directories 
> ("/home/*/.*"), *except* the directories "/home/*/.backup/".
> 
> Any hints on how to do this?
> 

Hi,

I asked something simmilar a while back. Look here:

   


Regards,
Christian Manal

--
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Fileset: How exclude all except...

2011-06-18 Thread Stuart McGraw
On 06/16/2011 10:38 AM, Christian Manal wrote:
> Am 16.06.2011 18:12, schrieb Stuart McGraw:
>> I am having some difficulty specifying a fileset.
>> 
>> I want to exclude all dot files in home directories 
>> ("/home/*/.*"), *except* the directories "/home/*/.backup/".
>> 
>> Any hints on how to do this?
>
> I asked something simmilar a while back. Look here:
> 
>

Thanks.  Scripting a file list dynamically is a little 
heavy-weight for what I was looking for though.

I was hoping that there was some way of saying "backup a/"
but exclude "a/b" but include "a/b/c", but exclude "a/b/c/d"...
i.e, includes and excludes could be cascaded somehow.

But from reading the documentation about 30 times and
the lack of response here, I conclude that it's not 
possible; one only gets one level of include/exclude.

I tried using an exclude regex, 

   regex = "^/home/[^/]+/\\.(?!backup(/|$))"

which should do what I want.  But bacula-dir complains it
is invalid.  

Does Bacula include it's own regex code?  Is it possible to
(easily) build it with a less-anemic regex library?  (I am 
using the stock Bacula-5.0.3 distributed in Fedora 15).

Finally (in case it helps someone else), I was able to use
a more basic regex that does the same as above but which is
obviously a lot less clear:
  Regex = 
"^/home/[^/]+/\\.([^b]|(b([^a]|$))|(ba([^c]|$))|(bac([^k]|$))|(back([^u]|$))|(backu([^p]|$))|(backup[^/]))"


 

--
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Fileset: How exclude all except...

2011-06-18 Thread Andrea Conti
Hello,

> I want to exclude all dot files in home directories 
> ("/home/*/.*"), *except* the directories "/home/*/.backup/".
> 
> Any hints on how to do this?

If you want to exclude dot _files_ (i.e. you don't care about
directories whose name starts with a dot other than .backup), and
assuming you're backing up the whole /home directory, this would be enough:

FileSet
{
   Include
   {
  Options
  {
 exclude = yes
 wildfile = "/home/*/.*"
  }
  File = /home
   }
}

If you also wish to exclude other dot-directories, I would try something
like:

FileSet
{
   Include
   {
  Options
  {
 wilddir = "/home/*/.backup"
  }
  Options
  {
 exclude = yes
 wild = "/home/*/.*"
  }
  File = /home
   }
}

Regex directives are another option, but IMHO they are a bit overkill
for this problem.

HTH,
andrea

--
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Fileset: How exclude all except...

2011-06-18 Thread Dan Langille

On Jun 18, 2011, at 9:19 AM, Stuart McGraw wrote:

> On 06/16/2011 10:38 AM, Christian Manal wrote:
>> Am 16.06.2011 18:12, schrieb Stuart McGraw:
>>> I am having some difficulty specifying a fileset.
>>> 
>>> I want to exclude all dot files in home directories 
>>> ("/home/*/.*"), *except* the directories "/home/*/.backup/".
>>> 
>>> Any hints on how to do this?
>> 
>> I asked something simmilar a while back. Look here:
>> 
>>   
> 
> Thanks.  Scripting a file list dynamically is a little 
> heavy-weight for what I was looking for though.
> 
> I was hoping that there was some way of saying "backup a/"
> but exclude "a/b" but include "a/b/c", but exclude "a/b/c/d"...
> i.e, includes and excludes could be cascaded somehow.

Wow.  That's complex.  I'm sorry.

I suggest you want different Filesets.

-- 
Dan Langille - http://langille.org


--
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Fileset: How exclude all except...

2011-06-20 Thread Stuart McGraw
On 06/18/2011 01:37 PM, Andrea Conti wrote:
>> I want to exclude all dot files in home directories 
>> ("/home/*/.*"), *except* the directories "/home/*/.backup/".
>> 
>> Any hints on how to do this?
> 
> If you want to exclude dot _files_ (i.e. you don't care about
> directories whose name starts with a dot other than .backup), and
> assuming you're backing up the whole /home directory, this would be enough:
> 
> FileSet
> {
>Include
>{
>   Options
>   {
>  exclude = yes
>  wildfile = "/home/*/.*"
>   }
>   File = /home
>}
> }

But this will backup .thunderbird/ with its 800MB
mail cache, yes?  That's what I want to avoid (without
having to maintain a list of specific black-listed
files/directories.)

> If you also wish to exclude other dot-directories, I would try something
> like:
> 
> FileSet
> {
>Include
>{
>   Options
>   {
>  wilddir = "/home/*/.backup"
>   }
>   Options
>   {
>  exclude = yes
>  wild = "/home/*/.*"
>   }
>   File = /home
>}
> }

That's what I tried before (along with some 
permutations -- I admit to still not understanding
well how Bacula interprets Filesets.)  The .backup 
directory is included in the backed up files but its 
contents are not.

> Regex directives are another option, but IMHO they are a bit overkill
> for this problem.

I thought so too which is why I asked here. :-)

--
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


  1   2   >