Carlo Filippetto wrote:
> 2010/2/9 Phil Stracchino <ala...@metrocast.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@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to