PowerShell script exchange
Post Reply
tGYtYI
Lurker
Posts: 1
Liked: never
Joined: Jan 22, 2018 8:21 pm
Contact:

Start-VBRQuickBackup for multiple VMs in the same job

Post by tGYtYI »

We are trying to integrate Veeam in to our patch management product. Due to the high number of VMs to be patched we have to throttle the number of concurrent servers applying patches. An example we can have 100 servers in a patch group but only 10 servers patching at one time. By the time the last servers are patching it could be hours later.

To protect us against a patch failure or unexpected issue during the patching process we want to leverage Veeam to perform a on demand backup directly before the patch process for that specific server. We have the functionality configured in the patch software to execute a pre-install function and can utilize the Veeam powershell for integration. The powershell we are attempting to use is the following.

Find-VBRViEntity -Name <server name> |Start-VBRQuickBackup

However because the many of the servers are in the same job but patched at a different time period we run into an overlap issue "Failed to perform quick backup Reason: Job in progress" Is there a way around this issue?
veremin
Product Manager
Posts: 20270
Liked: 2252 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: Start-VBRQuickBackup for multiple VMs in the same job

Post by veremin »

Basically, there are two options:

1) Identify VMs belonging to the same job and execute quick backup operation for those VMs at the same time (-VM parameter accepts arrays)
2) Check whether quick backup task is already running and pause script in case of positive (timeout)

Thanks.
Post Reply

Who is online

Users browsing this forum: No registered users and 22 guests