On 3 Dec 2004 at 9:49, Karl Cunningham wrote:

> Does anyone have an idea how to do a schedule for the *day before* the
> first Saturday of the month?
> 
> We do a full backup on the first Saturday of the month, but want the
> incremental backups the day before to start earlier than other Friday jobs,
> so they're sure to be done in time to change the media before we go home
> that day. Usually that would fall on the first Friday of the month,
> sometimes the fifth, once in a great while the fourth.
> 
> If there is no way to do this with the existing system, one thing I think
> would work is a "timeoffset=nnn" as part of a schedule resource. nnn would
> be an integer number of minutes that would add to the time that is
> otherwise specified in the schedule. Negative values of nnn would subtract
> time.  Something like this:
> 
> Run = timeoffset=-1440 dec first Saturday at 16:01
> 
> Ideas? Thoughts?

What about this:

Schedule a job for every Friday.  Include a RunBeforeJob option in 
that job. In that script, check to see if tomorrow is the first 
Saturday of the month.  If it is, proceed.  If it is not, error out 
and the backup job will not run.

If you don't like error'd out jobs, set up a cron job to do the same 
as above, but instead of proceeding, it invokes bconsole, and runs 
the job.

-- 
Dan Langille : Software Developer looking for work
my resume: http://www.freebsddiary.org/dan_langille.php




-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to