Bacula-users

Re: [Bacula-users] Automatic_Volume_Labeling_Creation

2010-02-09 17:43:17
Subject: Re: [Bacula-users] Automatic_Volume_Labeling_Creation
From: "Timo Neuvonen" <timo-news AT tee-en DOT net>
To: bacula-users AT lists.sourceforge DOT net
Date: Wed, 10 Feb 2010 00:39:19 +0200
"Phil Stracchino" <alaric AT metrocast DOT net> kirjoitti viestissä 
news:4B71CF9E.6010203 AT metrocast DOT net...
> On 02/09/10 15:14, connextis wrote:
>> I got Problems to set up the admin job, which closes the last created 
>> volume in a pool.
>> how does the script know which is the last used volume?
>
> Well, one way would be to have your script issue a list volumes command
> to the console, then parse the output to sort by last-written date.
>
>

Ather way could be adding a run-after-job option to actul backups. This 
obviously expands to volume name:
%v = Volume name (Only on director side)
(I don't know what happens when the volume fills up during a job... will %v 
be the last or the first or whichever volume?)

Maybe writing it to a file, and then admin job should close the volume the 
name of which is in the file? Or even append the volume names to a file, and 
then make sure that all volumes from that file are closed.

ps. The other question there... how to know the last day: run the admin job 
1st day of the next month, at 00:01, for example.


I would still vote for using different pools for consecutive months. I think 
it would be more straight-forward, or Bacula-like. But it's up to you to 
decide...

--
TiN 



------------------------------------------------------------------------------
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users