Is it possible to specify a client name as well as a path for exclusion lists in
a FileSet?

We use NIS in our environment. There's a category of auto-mounted directories,
used for incremental calculations, that never need to be backed up. Those
directories are defined in an automount map served via NIS.

A script is defined within the FileSet resource that dynamically generates a
list of directories to exclude, based on the paths in the automount map.

The problem is that the paths in the exclude list don't include a client name,
leading to the possibility that the same path will exist on different servers,
where one should be backed up.


For example:

  server + path         automount map   mounted as              backup?
  =============         =============   ==========              =======
  server1:/san1/JohnDoe auto.scratch    /scratch/JohnDoe        no
  server2:/san1/JohnDoe auto.home       /home/JohnDoe           yes

In this case, if I generate the exclusion list based on the contents of the
automount map "auto.scratch" (which never needs to be backed up), it will
contain "/san1/JohnDoe". This means that the important files in server2:/san1/
JohnDoe will also be excluded.


How is the 
         File = "|...."
mechanism implemented in the FileSet resource? Is there any way for the external
program to determine which client backup is causing the call to the program? For
example, if Bacula set and exported environment variables with details about the
job (the job name, client name, level, etc.), then the external program to test
that the server listed in the automount map matches the current client, and no
other machine.

Is the dynamic exclude list built for each backup job, or just once when the 
bacula-fd daemon starts?


Environment:
        bacula 1.38.11 (soon to move to 2.x.x)
        bacula-fd under Linux 
        mysql5

============= snippet from bacula-dir.conf ========================
FileSet
{
  Name = "Full Set"
  Ignore FileSet Changes = yes # The default is "no", meaning that a change in 
the
                         # fileset spec will trigger a full backup for
                         # the next backupup. However, if the change to
                         # the fileset is designed to exclude more files
                         # (as it would here, since the default stance is to
                         # backup all local files except those specifically
                         # excluded), then running a Full would defeat
                         # the purpose of changing the FileSet spec.

  Include
  {
    Options
    {
      fstype = reiserfs
      fstype = ext2
      fstype = xfs
      fstype = ufs
      onefs = no
      signature = MD5

      Exclude = yes
        wildFile = "/usr/local/bacula/var/working/*spool"
        wildFile = "/usr/local/bacula/var/working/*sql"
        wildFile = "*/var/lib/mysql/*/*.MYI"
        wildFile = "/var/lib/mysql/*/*.MYD"
        wildDir = "/var/cache/*"
        wildDir = "/var/run/*"
        wildDir = "/var/spool/clientmqueue/*"
        wildDir = "/var/spool/cups/tmp/*"
        wildDir = "/lost+found/*"
        wildDir = "/dev/pts/*"
        wildDir = "/dev/shm/*"
        wildDir = "/proc/*"
        wildDir = "/tmp/*"
        wildDir = "/var/lock/*"
        wildDir = "*/var/spool/bacula/*"
        wildDir = "bacula-spool/*"
        wildDir = "/var/tmp/*"
     }
    File = /
  }


  # Exclude Stuff
  Exclude
  {
        File = /var/log/wtmp
        File = /var/log/wtmpx
        File = /var/log/utmp
        File = /var/log/lastlog
        File = /var/adm/wtmp
        File = /var/adm/wtmpx
        File = /var/adm/utmp
        File = /var/adm/lastlog
        File = core
        File = /.fsck
        File = /.journal
        File = "|/usr/local/bacula/bin/dynamic_excludes"
  }
}
===================================================================




----
Mark Bergman                      [EMAIL PROTECTED]
System Administrator
Section of Biomedical Image Analysis             215-662-7310
Department of Radiology,           University of Pennsylvania

http://pgpkeys.pca.dfn.de:11371/pks/lookup?search=mark.bergman%40.uphs.upenn.edu




The information contained in this e-mail message is intended only for the 
personal and confidential use of the recipient(s) named above. If the reader of 
this message is not the intended recipient or an agent responsible for 
delivering it to the intended recipient, you are hereby notified that you have 
received this document in error and that any review, dissemination, 
distribution, or copying of this message is strictly prohibited. If you have 
received this communication in error, please notify us immediately by e-mail, 
and delete the original message.

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

Reply via email to