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] [-Proxy <CViProxy[]>] [-Reason <String>] [-PowerOn] [-EnableAntivirusScan] [-EnableYARAScan] [-YARAScanRule <String>] [-EnableEntireVolumeScan] [-AbortRecovery] [-Force] [-RunAsync] [<CommonParameters>] |
Detailed Description
This cmdlet starts a VMware VM virtual disk restore.
Parameters
|
Parameter |
Description |
Type |
Required |
Position |
Accept Pipeline Input |
|---|---|---|---|---|---|
|
AbortRecovery |
Defines that the cmdlet will cancel the restore session when the infection is detected. |
|
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: |
|
False |
Named |
False |
|
EnableAntivirusScan |
Enables the secure restore option. Veeam Backup & Replication will trigger the antivirus software to scan selected VMs before the restore. |
|
False |
Named |
False |
|
EnableEntireVolumeScan |
For secure restore. Defines 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. |
|
False |
Named |
False |
|
EnableYARAScan |
Enables the YARA scan for the selected VMs.
Use the |
|
False |
Named |
False |
|
Force |
Defines that the cmdlet will perform restore of VM virtual disks even if the geographic location of the repository where backups of VM virtual disks reside and the target host location does not match. |
|
False |
Named |
False |
|
PowerOn |
Defines that the cmdlet will start VMs immediately after the restore process is complete. |
|
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 |
|
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. |
|
False |
Named |
False |
|
Reason |
Specifies a reason for performing restore of virtual disks. |
|
False |
Named |
False |
|
RestorePoint |
Specifies a restore point of VMs. The cmdlet will restore virtual disks of these VMs.
Accepts the |
|
True |
Named |
True (ByPropertyName, ByValue) |
|
RunAsync |
Defines that the command returns immediately without waiting for the task to complete. |
|
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 |
|
False |
Named |
False |
|
TargetVM |
Specifies a target VM. The cmdlet will attach restored virtual disks to this VM.
Accepts the |
|
False |
Named |
False |
|
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 |
|
True |
Named |
False |
|
YARAScanRule |
Specifies the YARA rule. Veeam Backup & Replication will scan VMs with this rule.
Veeam Backup & Replication searches for YARA rules in the
To use a YARA rule, you must specify its name and extension. Veeam Backup & Replication accepts only |
|
False |
Named |
False |
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see 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] $rule1 = New-VBRViVirtualDeviceMappingRule -SourceVirtualDevice $disks[0] $rule2 = New-VBRViVirtualDeviceMappingRule -SourceVirtualDevice $disks[1] $mappingrules = $rule1, $rule2 Start-VBRViVirtualDiskRestore -RestorePoint $restorepoint -VirtualDeviceMapping $mappingrules |
Perform the following steps:
- Get the backed-up VM virtual disks:
- Run the
Get-VBRBackupReturns backups. cmdlet. Specify theNameparameter value. Save the result to the$backupvariable. - Run the
Get-VBRRestorePointReturns restore points. cmdlet. Specify theBackupparameter value. Save the result to the$restorepointvariable.The
Get-VBRRestorePointcmdlet will return an array of restore points. Consider that the array numbering starts with 0. In our example, the fourth restore point will be used. - Run the
Get-VBRViVirtualDeviceReturns details on VMware VM virtual disks. cmdlet. Specify theRestorePointparameter value. Save the result to the$disksvariable.The
Get-VBRViVirtualDevicecmdlet will return an array of disks. Consider that the array numbering starts with 0. In our example, the first and second disks will be used.
- Run the
- Create a list of mapping rules:
- Run the
New-VBRViVirtualDeviceMappingRuleDefines backed-up virtual disk mapping settings. cmdlet. Specify theSourceVirtualDeviceparameter value. Save the result to the$rule1variable. - Run the
New-VBRViVirtualDeviceMappingRuleDefines backed-up virtual disk mapping settings. cmdlet. Specify theSourceVirtualDeviceparameter value. Save the result to the$rule2variable. - Save the
$rule1and$rule2variables as a list into the$mappingrulesvariable.
- Run the
- Run the
Start-VBRViVirtualDiskRestorecmdlet. Set the$restorepointvariable as theRestorePointparameter value. Set the$mappingrulesvariable as theVirtualDeviceMappingparameter value.
Related Commands
Get-VBRBackupReturns backups.Get-VBRRestorePointReturns restore points.Get-VBRViVirtualDeviceReturns details on VMware VM virtual disks.New-VBRViVirtualDeviceMappingRuleDefines backed-up virtual disk mapping settings.