Bacula-users

[Bacula-users] Excluding directories based on file names

2008-07-16 09:51:49
Subject: [Bacula-users] Excluding directories based on file names
From: Chris Howells <chris AT transitive DOT com>
To: bacula-users AT lists.sourceforge DOT net
Date: Wed, 16 Jul 2008 14:50:23 +0100
Hi,

I would like to configure bacula to exclude directories (and their 
subdirectories), from my backup, if that directory contains a file with 
a particular name. As an example, to manage the amount that we backup, 
we 'touch DO-NOT-BACKUP' in directories that need not be backed up to 
automatically get them excluded from the backup without having to 
manually mess around with exclude lists.

I've spent some time studying the manual on exclusions, but I've come to 
the conclusion that I can only exclude files and/or directories, not 
exclude a directory based on files it contains. Therefore in order to do 
what I want, I need to write a script and call it with the pipe | 
syntax, to generate the exclude list, e.g.

FileSet {
   Name = "export"
   Include {
     Options {
       signature = MD5
       sparse = yes
       noatime = yes
     }
     File = /export
   }
   Exclude {
   File = "| /etc/bacula/genexclude.sh"
   }
}

Is this correct?

Thanks.

-- 
Chris Howells <chris AT transitive DOT com>
SysAdmin - Transitive Ltd.
http://www.transitive.com

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users