On Thursday, October 5, 2017 at 3:35:24 PM UTC+2, Tim Banchi wrote:
> Dear community,
>
> I couldn't find a way how to automatically run a verify job after a backup
> job. The run script console command doesn't accept run. To start verify with
> a slightly postponed schedule and lower priority seems not ideal, because I
> have to duplicate all schedules.
>
> How is this best solved without duplicating the schedule and ensure that
> verify is run immediately after the backup job?
>
> My jobs are:
>
> #backup job
> Job {
> Name = client_semistatic
> Level = Full
> Client = client-fd
> FileSet = client_semistatic
> JobDefs = DefaultJob
> Schedule = weekly_1
> Pool = tape_semistatic
> Full Backup Pool = tape_semistatic
> Differential Backup Pool = tape_semistatic
> Incremental Backup Pool = tape_semistatic
> Spool Data = yes
> Priority = 40
> }
>
> #verify-job
> Job {
> Name = client_semistatic_verify
> Type = Verify
> Verify Job = client_semistatic
> Level = VolumeToCatalog
> Client = bkpserver-fd
> Accurate = yes
> FileSet = client_semistatic
> JobDefs = DefaultJob
> Schedule = weelkly_1_v
> Pool = tape_semistatic
> Spool Data = yes
> Priority = 41
> }
RunAfterJob with a command is answering my own question. Saves me a schedule
for verify jobs, and guarantees verify is only executed when backup job is
finished.
Job {
Name = "client_sys_ai"
JobDefs = "default_ai"
Client = "client-fd"
FileSet = linux_system
Schedule = client_sys_ai
RunAfterJob = "/bin/bash -c '/bin/echo \"run client_sys_ai_v yes\" | bconsole
>/dev/null'"
}
Job {
Name = client_sys_ai_v
JobDefs = default_verify
Verify Job = client_sys_ai
Level = VolumeToCatalog
Client = client-fd
FileSet = linux_system
Schedule = manual
Pool = disk_ai
Priority = 41
}
--
You received this message because you are subscribed to the Google Groups
"bareos-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
For more options, visit https://groups.google.com/d/optout.