Bacula-users

Re: [Bacula-users] Automatic_Volume_Labeling_Creation

2010-02-10 00:34:14
Subject: Re: [Bacula-users] Automatic_Volume_Labeling_Creation
From: Dan Langille <dan AT langille DOT org>
To: Carlo Filippetto <carlo.filippetto AT gmail DOT com>
Date: Wed, 10 Feb 2010 00:31:12 -0500
Carlo Filippetto wrote:
> 2010/2/9 Phil Stracchino <alaric AT metrocast DOT net>:
>> On 02/09/10 13:10, connextis wrote:
>>> Hello Timo,
>>>
>>> thank you for your advice. This should be a possible solution.
>>>
>>> besides this, i'm wondering if i can close the volumes end the end of each 
>>> month via a cronjob/script.
>>> Is this possible?
>> Why not just schedule an admin job to run on the last day of the month?

 > I think because the last day in on 28 or 30 or 31 of the month!
 > So.. how to say to make the job in the correct day?

If you put your replies at the bottom of the post, or within the post, 
it is easier for others to follow.

Create an admin job that runs on the 28-31st.

Have a run before script for that job.

In that script, find out if it's the end of the month.  Easy way: is 
today+1day = first day of the month?

If it's not the end of the month, return the right value to cancel the job.

See the documentation on Run Before scripts for more information.

------------------------------------------------------------------------------
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