Re: [Bacula-users] How to prevent to schedule a job if the same job is still running
2009-08-30 04:10:09
On Sunday 30 August 2009 10:41:34 Martina Mohrstein wrote:
>
> We have the follwing problem:
>
> We hava the following backup job that could run longer than one day while a
"full" backup.
>
> Job {
> Name = Full
> Type = Backup
> Client = pdb000qa-fd
> FileSet = "Full Set"
> Schedule = "MonthlyCycle"
> Storage = File
> Messages = Standard
> Pool = Default
> Full Backup Pool = Full-Pool
> Incremental Backup Pool = Inc-Pool
> Differential Backup Pool = Diff-Pool
> Write Bootstrap = "C:\\Documents and Settings\\All Users\\Application
Data\\Bacula\\Work\\Full.bsr"
> Priority = 30
> Max Start Delay = 23 hours
> Max Wait Time = 1 hour
> Rerun Failed Levels = yes
> }
>
> This job has the follwing schedule:
>
> Schedule {
> Name = "MonthlyCycle"
> Run = Full jan 1st sun at 3:05
> Run = Full jul 1st sun at 3:05
> Run = Differential jan 2nd-5th sun at 3:05
> Run = Differential feb-jun 1st-5th sun at 3:05
> Run = Differential jul 2nd-5th sun at 3:05
> Run = Differential aug-dec 1st-5th sun at 3:05
> Run = Incremental tue-sat at 3:05
> }
>
> After startupof bacula with this definition for the very first time, in the
first night this job is upgrades to full because the doesn't exists a prior
backup. This full backup takes more tha one day but in the second night the
job is scheduled another time as full because there still doesn't exist a
valid backup of this job because the old job is still running.
> With the default job directive "Maximum Concurrent Jobs = 1" only the
concurrent run of the same job is prevented but not the schedule of a job when
the same job is still running.
>
> So my question is how could I prevent the schedule of a job when the same
job is already running?
>
> We hope that somebody out there could help us.
>
> Regards Martin
Hi.
To my mind the only possibility is to cancel the duplicate job to-be-run with
a "run before job script" (I've posted my check-job.sh in this list multiple
times previously) and to avoid these cancelled full jobs causing the next one
being full too, you have to have "rerun failed jobs = no".
--
Silver
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users
|
|
|