-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
On 08/20/13 15:02, Dimitri Maziuk wrote:
> On 08/19/2013 12:41 PM, Jonathan Bayer wrote:
>> Hi,
>>
>> We have a few users who, for various reasons, constantly create &
>> delete huge files (hundreds of gigs). I'd like to exclude these
>> from the backup process.
>>
>> How can I do that, since I don't know where they can appear or
>> what their names are?
>
> You can't.
Actually, ues, you can. Instead of using a static Fileset, you can
configure Bacula to source a script that generates it on the fly. You
could create a dynamic-fileset script that excludes all files over a
specified size.
Here's an example from
http://www.bacula.org/manuals/en/install/install/Configuring_Director.html
of a dynamically-generated Fileset:
Include {
Options {
signature = SHA1
}
File = "|sh -c 'df -l | grep \"^/dev/hd[ab]\" | grep -v \".*/tmp\" \
| awk \"{print \\$6}\"'"
}
So you could simply create a dynamic fileset script here that
enumerates all directories and all files not exceeding a specified size.
Now, the above is a bit of a brute-force solution. I have not
personally tried this refinement, but I see no reason it should not
ALSO be possible to create a static fileset with a dynamically
generated exclude list, something like this.
FileSet {
Name = "Dynamic Exclude Set"
Include {
Options {
signature = SHA1
File = "|sh -c 'find /home -size +10G'"
Exclude = yes
}
File = /
File = /home
File = /var
}
}
This example should result in automatically excluding any file 10GB or
larger located anywhere under /home.
- --
Phil Stracchino, CDK#2 DoD#299792458 ICBM: 43.5607, -71.355
alaric AT caerllewys DOT net alaric AT metrocast DOT net phil AT
co.ordinate DOT org
Renaissance Man, Unix ronin, Perl hacker, SQL wrangler, Free Stater
It's not the years, it's the mileage.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.20 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
iEYEAREIAAYFAlITy6cACgkQ0DfOju+hMknfvgCaAq9OAedfNULleI25KMyuf/WE
VEgAoKXy0MSGDA24NUWMKzvCLY3TlOdN
=7XM+
-----END PGP SIGNATURE-----
------------------------------------------------------------------------------
Introducing Performance Central, a new site from SourceForge and
AppDynamics. Performance Central is your source for news, insights,
analysis and resources for efficient Application Performance Management.
Visit us today!
http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users
|