Comprehensive data protection for all workloads
Post Reply
fgw
Enthusiast
Posts: 84
Liked: 2 times
Joined: Jun 11, 2009 8:39 pm
Full Name: Franz Glatzer
Contact:

Feature Request: post job activity and schedule after job

Post by fgw »

when looking at the configuration options for the various job types there are some features missing from some jobs. specifically talking about the options to run a command after a job has finished and to schedule a job after another job has finished:


currently available features for the various job types:

backup job
advanced settings->advanced->post job activity->run the following command
schedule->run the job automatically->after this job

supports both options


file copy job
schedule->run the job automatically->after this job

missing the option to run a command


backup to tape job
schedule->run the job automatically->after this job

missing the option to run a command


file to tape job
run the full backup automatically->daily or montly
run incremental backup automatically->daily or montly

missing the option to run a command and also the option to run after another job has finished


also it would be nice to be able to select that both of this options should be performed ONLY if the backup job was processed without errors! it does not make to much sense to move a large vbk file over the network using a file copy job, when there were errors in the backup job and the backup job would be retried anyway. not checked if the retry complains about the probably locked vbk file as the filecopy job night be still in action ...
in this situation i would prefer to not start the filecopy job immediately after this failed backup job but wait for a successful retry and start the filecopy job only if the job finished without error, which might be after the second or third retry attempt.

the same holds true for running a command after a job has finished. in might be useless to run the command if there were errors during this job. may be there could even be a variable passed to the command (like the variables passed to the mail notification) passing the information to the command if there was an error or warning and if this was a retry or not.
veremin
Product Manager
Posts: 20284
Liked: 2258 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: Feature Request: post job activity and schedule after jo

Post by veremin »

Previously, there have been similar requests regarding missing notification and post job activity options for tape and file copy jobs. Also, users have reported the need of having status based notifications. So, currently we're considering how these requirements can be met in the next product releases.

As for now, you can put PS scripting into place in order to get missing functionality:

1) Post-Job Activity. File copy Job:

Code: Select all

Asnp VeeamPSSnapin
Get-VBRJob -name "Name of file copy job" | Start-VBRJob
Post-Job commands
2) Post-Job Activity. Tape Job:

Code: Select all

Asnp VeeamPSSnapin
Get-VBRTapeJob -name "Name of tape job" | Start-VBRJob
Post-Job commands
3) Status based notification.

Code: Select all

$Job = Get-VBRJob -name "Name of backup Job"
$LastSession = $Job.FindLastSession()
If ($LastSession.State -ne  "Success") {send e-mail} 
3) Status based post job activity.

Code: Select all

$Job = Get-VBRJob -name "Name of backup Job"
$LastSession = $Job.FindLastSession()
If ($LastSession.State -eq  "Success") {post-job activity commands} 
Thanks.
Post Reply

Who is online

Users browsing this forum: Semrush [Bot] and 115 guests