Bacula-users

[Bacula-users] Include Dir Containing?

2011-02-22 05:10:40
Subject: [Bacula-users] Include Dir Containing?
From: Christian Manal <moenoel AT informatik.uni-bremen DOT de>
To: bacula-users AT lists.sourceforge DOT net
Date: Tue, 22 Feb 2011 11:07:14 +0100
Hi list,

I know there is an option for filesets to exclude directories containing
a specific file (Exclude Dir Containing). Now I was wondering if there
is an easy way do it the other way around, i.e. only include directories
containing a specific file? I don't think this can be done with
Regex(|dir|file) or Wild(|dir|file).

The background is that I'd like to let the users in my environment
decide what should be backed up in their home directory and what shouldn't.

Of course I could do something like this:

   FileSet {
      Name = "HomeDirs"
      Ignore FileSet Changes = yes
      Include {
         Options {
            signature = ...
            ...
         }
         File = "\\|find /export/home -type f -name '.backmeup' \
                    -exec dirname {} \;"
      }
   }

But I'd rather get it done with what Bacula offers, if possible. Any
help would be appreciated.


Regards,
Christian Manal

------------------------------------------------------------------------------
Index, Search & Analyze Logs and other IT data in Real-Time with Splunk 
Collect, index and harness all the fast moving IT data generated by your 
applications, servers and devices whether physical, virtual or in the cloud.
Deliver compliance at lower cost and gain new business insights. 
Free Software Download: http://p.sf.net/sfu/splunk-dev2dev
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users

<Prev in Thread] Current Thread [Next in Thread>