Hi, 20.09.2007 08:18,, James Harper wrote:: > If I understand the manual correctly, the moment Bacula hits the > 'Maximum Volume Bytes' it will stop using that volume (the manual says > "This value is checked and the Used status set while the job is writing > to the particular volume.") > > What I am looking for is a way to check the volume we are just about to > use, and purge it if it there are more than x bytes used.
Thats not possible without some help... what I would do is use an external script to achieve this behaviour. A script that could be run from an admin job before your daily jobs start could do the following: Check how much space is left on the currently available disk (using df, probably). If it's less than a given amount or percentage, issue "purge volume=<label>" commant to bconsole. Check the output, create a readable report. I think I would even make sure the volume file has a minimum age, so that the most current jobs will not get overwritten. Sounds rather simple, but needs to be implemented and tested, of course... > The specific scenario is 5 x 120GB external USB disks used on a rotating > basis. The operator just removes the current disk each morning and > attaches the next one in the queue. There is only about 25G being backed > up each night at the moment, so I want Bacula to be able to look at the > volume that is currently plugged in, and if it has more than (say) 80GB > on it, it will purge it and start anew, otherwise it will just append. > This gives us the maximum amount of available history to restore from. > > An alternative would be to place several Bacula volumes on each external > disk (say 3) and treat them as 1 job per volume, I would prefer this, by the way. > but currently each > volume name is written in texta on the physical case of the external > disk, and having more than one would make it more complicated than I > think it needs to be for the operator. Good reason, but how your volume changing is implemented depends on your usualy procedures and how the operator like to work... for simple "tape-changing grunts" I'd use something different than for the clever admin type of operators :-) (no offense to any operators - I know you've got lots of other stuff do do, typically.) Arno > Any suggestions? > > Thanks > > James > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Bacula-users mailing list > Bacula-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/bacula-users -- Arno Lehmann IT-Service Lehmann www.its-lehmann.de ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users