Start-VBRJob & chain

Discussions specific to VMware vSphere hypervisor

Start-VBRJob & chain

Veeam Logoby MarcinS » Wed Nov 04, 2015 9:47 am

Hi Guys,

i have 2 jobs (1 backup and 1 replica). Replica job should go when backup job finish

- when i start backup job manually it work cause ask that there are jobs in chain and ask if replica should be started
- when i start backup job from scheduler it also work ....and replica is started after backup finish

unfortunately i found that when i start backub job by script

Get-VBRJob -Name "BckJob" | Start-VBRJob -RunAsync

it not start replica after it. Is any syntax to add for Start-VBRJob command to start also jobs in chain ?
Posts: 23
Liked: 2 times
Joined: Mon May 18, 2015 8:31 am

Re: Start-VBRJob & chain

Veeam Logoby Vitaliy S. » Thu Nov 05, 2015 11:42 am

Hi MarcinS,

Can you please tell me why would you like to chain these jobs? Do you process the same VMs with them or there are some other considerations? As to chaining jobs with PowerShell, then I believe you just need to trigger them via separate cmdlets in the same script, our PS community should assist you with the script.

Vitaliy S.
Veeam Software
Posts: 20357
Liked: 1178 times
Joined: Mon Mar 30, 2009 9:13 am
Full Name: Vitaliy Safarov

Re: Start-VBRJob & chain

Veeam Logoby v.Eremin » Mon Nov 09, 2015 8:32 am

Start-VBRJob doesn't take care about chained jobs, indeed. Thus, to execute job in required order you have to start them one by one, similar to the following:

Code: Select all
Start-VBRJob -Job $Job1
Start-VBRJob -Job $Job2
Start-VBRJob -Job $Job3

Veeam Software
Posts: 14023
Liked: 1051 times
Joined: Fri Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin

Return to VMware vSphere

Who is online

Users browsing this forum: No registered users and 1 guest