Way to prevent from cumulating jobs

25 views
Skip to first unread message

Spadajspadaj

unread,
Jun 9, 2020, 5:24:19 AM6/9/20
to bareos-users
Hi there.

I'm wondering whether there is a reasonable way to prevent bareos from
scheduling jobs from same client in quick succession.

Here's what I mean. We have a bareos setup with a single tape drive. The
jobs are scheduled daily with Inc/Diff/Full schedule. If we fail to
change tape as requested (sometimes there's noone on site for few days),
the jobs are getting queued and if we finally do put a new tape in, all
queued jobs are getting executed. The optimal solution would be to
execute just one job for each client from the period that we had no tape
available (of course with highest job level in case of different levels
queued through few days). But I don't see a nice way to do that.

I wouldn't want the jobs to have short timeout and fail quickly (I
suppose that would work, finally job on lower levels would get promoted
if there was no appropriate higher level job available, right?) but that
would mess job status with many failed jobs. But if it's the only way...

Andrei Brezan

unread,
Jun 9, 2020, 5:30:39 AM6/9/20
to bareos...@googlegroups.com
You can use the Cancel options from
https://docs.bareos.org/Configuration/Director.html#job-resource.
Something like:
Allow Duplicate Jobs = false
Cancel Lower Level Duplicates = true
Cancel Queued Duplicates = true

--
Andrei

Spadajspadaj

unread,
Jun 9, 2020, 5:31:45 AM6/9/20
to bareos...@googlegroups.com
That's exactly what I needed.

Thank you!

Reply all
Reply to author
Forward
0 new messages