Hello,
Is there an example of Start-VBRHvInstantRecoveryMigration moving backup into production powershell script?
Restoring a deleted vm in cventer from backup using this command below
#Move to Production
Get-VBRInstantRecovery | Start-VBRHvInstantRecoveryMigration
basically what i am trying to achieve is to make a full script to restore a deleted vm from a full backup from an agent backup
1. Entire Machine restore
2. Instant Recovery
3. Instant Recovery form Vsphere
Then supply the following
Machine: (JOBNAME)
Host: esx host
Folder:
Network:
Datastore:
Reason
-
- Novice
- Posts: 3
- Liked: 1 time
- Joined: May 03, 2024 4:13 pm
- Full Name: red tred
- Contact:
-
- Veeam Software
- Posts: 1848
- Liked: 443 times
- Joined: Jun 28, 2016 12:12 pm
- Contact:
Re: Case #07248549 Start-VBRHvInstantRecoveryMigration
Hi redtred,
https://helpcenter.veeam.com/docs/backu ... ml?ver=120
For Agent based backups, use Start-VBREpInstantRecovery; basically there is an example on the bottom there and all you need to do is pass a restore point to the appropriate cmdlet and the rest of the parameters, there isn't much to script as most scripts will just be about the "extras" you want (e.g., should it log, how to determine which host it will go to, etc)
I'm afraid I don't have a fast script example, but start with that cmdlet for performing instant recovery from an Agent based backup via the example. Basically you'll need to:
1. Save the desired RestorePoint returned from Get-VBRRestorePoint
2. Save the target host for the instant recovered VM returned from Get-VBRServer
3. Set the other parameters from the cmdlet based on your needs, then give it a shot.
Try your hand at a script on this and if you hit issues, share your script + the problems you faced.
https://helpcenter.veeam.com/docs/backu ... ml?ver=120
For Agent based backups, use Start-VBREpInstantRecovery; basically there is an example on the bottom there and all you need to do is pass a restore point to the appropriate cmdlet and the rest of the parameters, there isn't much to script as most scripts will just be about the "extras" you want (e.g., should it log, how to determine which host it will go to, etc)
I'm afraid I don't have a fast script example, but start with that cmdlet for performing instant recovery from an Agent based backup via the example. Basically you'll need to:
1. Save the desired RestorePoint returned from Get-VBRRestorePoint
2. Save the target host for the instant recovered VM returned from Get-VBRServer
3. Set the other parameters from the cmdlet based on your needs, then give it a shot.
Try your hand at a script on this and if you hit issues, share your script + the problems you faced.
David Domask | Product Management: Principal Analyst
-
- Novice
- Posts: 3
- Liked: 1 time
- Joined: May 03, 2024 4:13 pm
- Full Name: red tred
- Contact:
Re: Case #07248549 Start-VBRHvInstantRecoveryMigration
Hello,
So here is my script below.
$backup = Get-VBRBackup -Name "Linux-VM-Full-Backup"
$restorepoint = Get-VBRRestorePoint -Backup $backup | Sort-Object –Property CreationTime –Descending | Select -First 1
$server = Get-VBRServer -Type ESXi -Name 192.168.1.11
Start-VBRInstantRecovery -RestorePoint $restorepoint -Server $server
After executing it It will now go to the Instant recovery once done restoring the VM. Now my problem is how do make it to move into production suing a cmdlet or cli command?
Thanks
So here is my script below.
$backup = Get-VBRBackup -Name "Linux-VM-Full-Backup"
$restorepoint = Get-VBRRestorePoint -Backup $backup | Sort-Object –Property CreationTime –Descending | Select -First 1
$server = Get-VBRServer -Type ESXi -Name 192.168.1.11
Start-VBRInstantRecovery -RestorePoint $restorepoint -Server $server
After executing it It will now go to the Instant recovery once done restoring the VM. Now my problem is how do make it to move into production suing a cmdlet or cli command?
Thanks
-
- Veeam Software
- Posts: 1848
- Liked: 443 times
- Joined: Jun 28, 2016 12:12 pm
- Contact:
Re: Case #07248549 Start-VBRHvInstantRecoveryMigration
Hi redtred,
https://helpcenter.veeam.com/docs/backu ... ml?ver=120
Check the cmdlets here -- you should be able to get the InstantRecovery session as shown in the examples, but just to confirm, you are using:
Veeam Agent (for windows/linux)
Trying to restore to Hyper-V
Correct? Or is it to VMware?
Basically, since the Instant Recovery starts, just follow the instructions on the above link.
https://helpcenter.veeam.com/docs/backu ... ml?ver=120
Check the cmdlets here -- you should be able to get the InstantRecovery session as shown in the examples, but just to confirm, you are using:
Veeam Agent (for windows/linux)
Trying to restore to Hyper-V
Correct? Or is it to VMware?
Basically, since the Instant Recovery starts, just follow the instructions on the above link.
David Domask | Product Management: Principal Analyst
-
- Novice
- Posts: 3
- Liked: 1 time
- Joined: May 03, 2024 4:13 pm
- Full Name: red tred
- Contact:
Re: Case #07248549 Start-VBRHvInstantRecoveryMigration
Hello,
Restoring to Hyper-V Esxi Vcenter. Ok i will try this out and let you know.
Best,
Red
Restoring to Hyper-V Esxi Vcenter. Ok i will try this out and let you know.
Best,
Red
Who is online
Users browsing this forum: No registered users and 42 guests