Elegant way to chain jobs / How to schedule jobs to run after another

86 views
Skip to first unread message

Miguel Santos

unread,
Oct 23, 2023, 5:05:17 AM10/23/23
to bareos-users
Hi,

I would like to know the ways you are using to schedule jobs to run after one job has finished.

Problem is that I have a job that sometimes takes 2 hours and other times it takes 4 to complete. I want to replicate this job to another media as soon as it finishes.

So far I am aware that I can:
- Play with the priorities of the jobs - but if I have many jobs the job that has lower priority (higher number) will run after the other has finished.
- Run Script (although Console mode does not support the run command, I can create a bash script) to launch a shell script that will execute the job using bconsole.


I am not happy with these 2 methods, they do not seem elegant. Any other suggestions to do that? I see the schedule times do not actually support chaining the jobs.
Reply all
Reply to author
Forward
0 new messages