Start-VBRViVirtualDiskRestore
Short Description
Starts VMware VM virtual disk restore.
Product Edition: Standard, Enterprise, Enterprise Plus, Veeam Universal License
Syntax
Start-VBRViVirtualDiskRestore -RestorePoint <COib> -VirtualDeviceMapping <VBRViVirtualDeviceMappingRule[]> [-TargetVM <CViVmItem>] [-ShareCredentials <CCredentials>] [-DiskType <VBRViDiskType>] [-QuickRollback <SwitchParameter>] [-Proxy <CViProxy[]>] [-Reason <String>] [-PowerOn <SwitchParameter>] [-EnableAntivirusScan][-EnableEntireVolumeScan] [-AbortRecovery] [-Force <SwitchParameter>] [-RunAsync <SwitchParameter>] [<CommonParameters>] |
Detailed Description
This cmdlet starts a VMware VM virtual disk restore.
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 | Named | True (ByValue, ByPropertyName) |
VirtualDeviceMapping | Specifies an array of mapping settings for backed-up virtual disks. The cmdlet will attach virtual disks to the datastore according to these settings. | Accepts the VBRViVirtualDeviceMappingRule[] object. To create this object, run the New-VBRViVirtualDeviceMappingRule cmdlet. | True | Named | False |
TargetVM | Specifies a target VM. The cmdlet will attach restored virtual disks to this VM. | Accepts the CViVmItem object. To get this object, run the Find-VBRViEntity cmdlet. | False | Named | False |
ShareCredentials | For restore to different VM. Specifies credentials that you want to use to authenticate with the VM to which you attach restored virtual disks. | Accepts the CCredentials object. To create this object, run the Get-VBRCredentials cmdlet. | False | Named | False |
DiskType | Specifies the virtual disk type settings. The cmdlet will set the virtual disks types to the specified type during the restore. You can specify one of the following disk types:
Default: AsSource | VBRViDiskType | False | Named | False |
QuickRollback | Defines that the cmdlet will apply the quick rollback option. Use this option if you want to restore virtual disks to the original location and with original format. | SwitchParameter | False | Named | False |
Proxy | Specifies the backup proxy that the cmdlet will use to transport the restored data to the to the target datastore. | Accepts the CViProxy[] object. To get this object, run the Get-VBRViProxy cmdlet. | False | Named | False |
Reason | Specifies a reason for performing restore of virtual disks. | String | False | Named | False |
PowerOn | Defines that the cmdlet will start VMs immediately after the restore process is complete. | SwitchParameter | False | Named | False |
EnableAntivirusScan | Indicates that the cmdlet will perform secure restore. Veeam Backup & Replication will trigger the antivirus software to scan selected VMs before the restore. | SwitchParameter | False | Named | False |
EnableEntireVolumeScan | For secure restore. Indicates that the antivirus will continue VMs scan 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 |
AbortRecovery | Defines that the cmdlet will cancel the restore session when the infection is detected. | SwitchParameter | False | Named | False |
Force | Defines that the command returns immediately without waiting for the task to complete. | SwitchParameter | False | Named | False |
RunAsync | 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
Examples
Starting Restore of Backed-Up Virtual Disks
This example shows how to start restore virtual disks of the VM that is backed up by the Winsrv4515 job. The cmdlet will attach virtual disks to the original VM.
$backup = Get-VBRBackup -Name "Winsrv4515" $restorepoint = Get-VBRRestorePoint -Backup $backup $disks = Get-VBRViVirtualDevice -RestorePoint $restorepoint[3] $mappingrule = New-VBRViVirtualDeviceMappingRule -SourceVirtualDevice $disks Start-VBRViVirtualDiskRestore -RestorePoint $restorepoint -VirtualDeviceMapping $mappingrule |
Perform the following steps:
- Get the backed-up VM virtual disks:
- Run the Get-VBRBackup cmdlet. Specify the Name parameter value. Save the result to the $backup variable.
- Run the Get-VBRRestorePoint cmdlet. Specify the Backup parameter value. Save the result to the $restorepoint variable.
- Run the Get-VBRViVirtualDevice cmdlet. Specify the RestorePoint parameter value. Save the result to the $disks 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 fourth restore session in the array).
- Run the New-VBRViVirtualDeviceMappingRule cmdlet. Specify the SourceVirtualDevice parameter value. Save the result to the $mappingrule variable.
- Run the Start-VBRViVirtualDiskRestore cmdlet. Set the $restorepoint variable as the RestorePoint parameter value. Set the $mappingrule variable as the VirtualDeviceMapping parameter value.
Related Commands