Re: [Bacula-users] excluding directories if a special file is present

2006-06-29 Thread Arno Lehmann
Hello,

On 6/28/2006 10:04 AM, Moritz Bunkus wrote:
 Hey,
 
 we've been using Bacula for quite some time now. Before that we were
 using Arkeia,

(shudder...)

 and one feature I rather liked about Arkeia was that you
 could simply create a file called .ARK_NOBACKUP in a directory and
 Arkeia would exclude that directory and all of its children from the
 backup.
 
 This allowed not only the administrator but also normal users to
 selectively exclude stuff

Yes, I always considered that a security risk. I'm glad you agree ;-)

 from their home directories, e.g. a download
 directory containing a couple of ISO images or something like that. All
 of our users (of which we don't have that many) know that they can
 easily shoot themselves in their collective feet with this if they put
 such a file into the wrong directory, so I'm not concerned about them
 excluding important directories too much.

Ok, then...

 Now, how could I achieve something like this with Bacula? My current
 idea is to have a small Perl script find all directories with such a
 file and to use that like...
 
 FileSet {
   Name = ...
   Include {
 ...
   }
   Exclude {
 File = \\|bacula_exclude_dirs.pl
   }
 }
 
 Would that work? Problem is that this might take quite a while for huge
 file systems. But after searching the docs again I couldn't find another
 way.

That seems to be the only working solution.  Also, you could do other, 
interesting, things in such a script. For example, I use a script to 
create not only a file set for one job, but also conrol some programs in 
it - mail server backup, for example.

This has been discussed once, and IIRC Kern didn't like the idea to 
allow such simple user control over backup operations but would accept a 
patch to allow it, as long it would need explicit enabling.

One other solution you could use is to create the file set by a script 
and then include that list. This might allow to separate the file system 
scan from the backup run (interesting in case you want to control the 
clients load).


Arno

 Regards,
 Mosu
 
 
 
 
 
 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=lnkkid=120709bid=263057dat=121642
 
 
 
 
 ___
 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

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=lnkkid=120709bid=263057dat=121642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] excluding directories if a special file is present

2006-06-28 Thread Moritz Bunkus
Hey,

we've been using Bacula for quite some time now. Before that we were
using Arkeia, and one feature I rather liked about Arkeia was that you
could simply create a file called .ARK_NOBACKUP in a directory and
Arkeia would exclude that directory and all of its children from the
backup.

This allowed not only the administrator but also normal users to
selectively exclude stuff from their home directories, e.g. a download
directory containing a couple of ISO images or something like that. All
of our users (of which we don't have that many) know that they can
easily shoot themselves in their collective feet with this if they put
such a file into the wrong directory, so I'm not concerned about them
excluding important directories too much.

Now, how could I achieve something like this with Bacula? My current
idea is to have a small Perl script find all directories with such a
file and to use that like...

FileSet {
  Name = ...
  Include {
...
  }
  Exclude {
File = \\|bacula_exclude_dirs.pl
  }
}

Would that work? Problem is that this might take quite a while for huge
file systems. But after searching the docs again I couldn't find another
way.

Regards,
Mosu

-- 
LINET Services GbR

Gotenweg 15  Tel.: 0531-180 508 0
38106 Braunschweig   Fax.: 0531-180 508 29

http://www.linet-services.de
mailto:[EMAIL PROTECTED]



pgpOCHIOgNnVn.pgp
Description: PGP signature
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=lnkkid=120709bid=263057dat=121642___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users