>>>>> 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 = "<exclude-dirs"
  Dominic>    WildFile = "<exclude-files"
  Dominic>   }

  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 <file-list> 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

Reply via email to