PowerShell script exchange
Post Reply
billy.tsang
Veeam Software
Posts: 184
Liked: 6 times
Joined: Feb 27, 2017 2:19 am
Full Name: Billy Tsang
Location: Hong Kong
Contact:

Instant VM recovery (multiple VM in a backup job)

Post by billy.tsang »

HI all,

I am trying to use powershell to run instant VM recovery
I have 2 things to concern.
1.How do I select a VM from a backup job to run instant VM recovery
2.How can I select all the VM from the a backup job to run instant VM recovery at the same time

From the veeam powershell guide

Code: Select all

PS C:\PS> $restorepoint = Get-VBRBackup -Name "Active Directory Backup" | Get-VBRRestorePoint | Sort-Object $_.creationtime -Descending | Select -First 1
PS C:\PS> $server02 = Get-VBRServer -Name "VMware Host 02"
PS C:\PS> $resourcepool = Find-VBRViResourcePool -Server $server02 -Name "Restored"
PS C:\PS> Start-VBRInstantRecovery -RestorePoint $restorepoint -Server $server02 -ResourcePool $resourcepool -Folder "C:\Restored" -PowerUp-NICsEnabled-Reason "VM recovery"
If Active Directory Backup with more than 1 VMs in the list,
1.How can I select a VM from a backup job to run instant VM recovery with PS
2.How can I select all the VM from the a backup job to run instant VM recovery with PS
I am new in writing powershell,please share some ideas to me.

Thank you.
veremin
Product Manager
Posts: 20413
Liked: 2301 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: Instant VM recovery (multiple VM in a backup job)

Post by veremin »

1.How do I select a VM from a backup job to run instant VM recovery
You will need to find necessary backup first, then, specific restore point to restore from. This is exactly what example in user guide illustrates.
If Active Directory Backup with more than 1 VMs in the list
What exactly do you mean by "Active Directory Backup job"?
How can I select all the VM from the a backup job to run instant VM recovery with PS
Find backups first, then, all restore points to restore from. After that, initiate restore.

Thanks.
Vito
Lurker
Posts: 1
Liked: never
Joined: Sep 28, 2021 3:22 pm
Full Name: Vito
Contact:

Re: Instant VM recovery (multiple VM in a backup job)

Post by Vito »

Hi billy.tsang,

Hope you're well. Have you found a solution to this query? If so, coud you please share it with us?

Thanks
oleg.feoktistov
Veeam Software
Posts: 2010
Liked: 670 times
Joined: Sep 25, 2019 10:32 am
Full Name: Oleg Feoktistov
Contact:

Re: Instant VM recovery (multiple VM in a backup job)

Post by oleg.feoktistov »

Hi Vito,

What exactly are you looking for? Maybe I could help you.

Thanks,
Oleg
Post Reply

Who is online

Users browsing this forum: No registered users and 7 guests