This is an archive version of the document. To get the most up-to-date information, see the current version.

Start-VBRViInstantVMDiskRecovery

Short Description

Starts a restore of VM virtual disks from backups.

Applies to

Product Edition: Standard, Enterprise, Enterprise Plus

Syntax

Start-VBRViInstantVMDiskRecovery [-RestorePoint] <COib> -TargetVM <CViVmItem> -TargetVirtualDevice  <VBRViVirtualDevice[]> [-EnableAntivirusScan] [-EnableEntireVolumeScan] [-Reason <string>] [-RunAsync] [-Force] [<CommonParameters>]

Detailed Description

This cmdlet starts a restore of VM virtual disks from backups.

Parameters

Parameter

Description

Type

Required

Position

Accept Pipeline Input

RestorePoint

Specifies a restore point of VMs. The cmdlet will restore virtual disks of these VMs.

Accepts the COib object. To get this object, run the Get-VBRRestorePoint cmdlet.

True

0

True (ByValue, ByPropertyName)

TargetVM

Specifies a target VM. The cmdlet will restore virtual disks to the specified VM.

Accepts the CViVmItem object. To get this object, run the Find-VBRViEntity cmdlet.

True

Named

False

TargetVirtualDevice

Specifies an array of target VM device nodes. The cmdlet will map the virtual disks from backup to the specified node.

Accepts the VBRViVirtualDevice[] object. To get this object, run the Get-VBRViVirtualDevice cmdlet.

True

Named

False

EnableAntivirusScan

Defines that the cmdlet will perform secure restore. Veeam Backup & Replication will trigger the antivirus software to scan selected VM virtual disks before the restore.

SwitchParameter

False

Named

False

EnableEntireVolumeScan

For secure restore.

Defines that the antivirus will continue scan of VM virtual disks after the first virus threat is found. Use this option if you want to get the report on all virus threats.

SwitchParameter

False

Named

False

Reason

Specifies a reason for performing instant recovery of VM virtual disks.

String

False

Named

False

RunAsync

Defines that the command returns immediately without waiting for the task to complete.

SwitchParameter

False

Named

False

Force

Defines that the cmdlet will perform restore of VM virtual disks even if the geographical location of the repository where backups of VM virtual disks reside and the target host location does not match.

SwitchParameter

False

Named

False

<CommonParameters>

This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see the About CommonParameters section of Microsoft Docs.

Output Object

This cmdlet returns the InstantRecovery object that contains details on virtual disks of VMs from backups.

Examples

Restoring VM Virtual Disks From Backups

This example shows how to restore VM virtual disks from the Winsrv4515 backup. The cmdlet will restore virtual disks of the Winsrv4515 VM.

$backup = Get-VBRBackup -Name "Winsrv4515"

$restorepoint = Get-VBRRestorePoint

$server = Get-VBRServer -Name "ESXiHost"

$vm = Find-VBRViEntity -Server $server -Name "Winsrv4515"

$device = Get-VBRViVirtualDevice -RestorePoint $restorepoint

Start-VBRViInstantVMDiskRecovery -RestorePoint $restorepoint[3] -TargetVM $vm -TargetVirtualDevice $device

Perform the following steps:

  1. Get the restore point:
  1. Run the Get-VBRBackup cmdlet. Specify the Name parameter value. Save the result to the $backup variable.
  2. Run the Get-VBRRestorePoint cmdlet. Save the result to the $restorepoint variable.

The Get-VBRRestorePoint cmdlet will return an array of restore points. Mind the ordinal number of the necessary restore point (in our example, it is the forth restore point in the array).

  1. Get the VM.
  1. Run the Get-VBRServer cmdlet. Specify the Name parameter value. Save the result to the $server variable.
  2. Run the Find-VBRViEntity cmdlet. Set the $server variable as the Server parameter value. Specify the Name parameter value. Save the result to the $vm variable.
  1. Run the Get-VBRViVirtualDevice cmdlet. Set the $restorepoint variable as the RestorePoint parameter value.
  1. Run the Start-VBRViInstantVMDiskRecovery cmdlet. Specify the following settings:
  • Set the $restorepoint variable as the RestorePoint parameter value.
  • Set the $vm variable as the TargetVM parameter value.
  • Set the $device variable as the TargetVirtualDevice parameter value.

Related Commands