Start-VBRViInstantVMDiskRecovery
Short Description
Starts restore of VM virtual disks from backups.
Product Edition: Standard, Enterprise, Enterprise Plus, Veeam Universal License
Syntax
|
Start-VBRViInstantVMDiskRecovery [-RestorePoint] <COib> [-ShareCredentials <CCredentials>] -TargetVM <CViVmItem> -TargetVirtualDevice <VBRViVirtualDevice[]> [-EnableAntivirusScan] [-EnableYARAScan] [-YARAScanRule <String>] [-EnableEntireVolumeScan] [-Reason <String>] [-RunAsync] [-Force] [-ForceArchivedSnapshotsRestore] [-EnableClusterWideMount] [<CommonParameters>] |
Detailed Description
This cmdlet starts restore of VM virtual disks from backups. You can publish these to the production environment immediately after performing the restore.
Parameters
|
Parameter |
Description |
Type |
Required |
Position |
Accept Pipeline Input |
|---|---|---|---|---|---|
|
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. |
|
False |
Named |
False |
|
EnableClusterWideMount |
Defines that the cmdlet will mount the vPowerNFS datastore to all ESXi hosts in the target cluster. |
|
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. |
|
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 |
|
ForceArchivedSnapshotsRestore |
Defines that the cmdlet will use archive snapshots for restore without showing warnings in the PowerShell console. |
|
False |
Named |
False |
|
Reason |
Specifies a reason for performing instant recovery of VM virtual disks. |
|
False |
Named |
False |
|
RestorePoint |
Specifies a restore point of VMs. The cmdlet will restore virtual disks of these VMs.
Accepts the |
|
True |
0 |
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. |
|
False |
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 |
|
True |
Named |
False |
|
TargetVM |
Specifies a target VM. The cmdlet will restore virtual disks to the specified VM.
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
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:
- Get the restore point:
- Run the
Get-VBRBackupReturns backups. cmdlet. Specify theNameparameter value. Save the result to the$backupvariable. - Run the
Get-VBRRestorePointReturns restore points. cmdlet. 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 the VM.
- Run the
Get-VBRServerReturns hosts connected to the backup infrastructure. cmdlet. Specify theNameparameter value. Save the result to the$servervariable. - Run the
Find-VBRViEntityLooks for VMware objects. cmdlet. Set the$servervariable as theServerparameter value. Specify theNameparameter value. Save the result to the$vmvariable.
- Run the
- Run the
Get-VBRViVirtualDeviceReturns details on VMware VM virtual disks. cmdlet. Set the$restorepointvariable as theRestorePointparameter value. - Run the
Start-VBRViInstantVMDiskRecoverycmdlet. Specify the following settings:- Set the
$restorepointvariable as theRestorePointparameter value. - Set the
$vmvariable as theTargetVMparameter value. - Set the
$devicevariable as theTargetVirtualDeviceparameter value.
- Set the
Related Commands
Get-VBRBackupReturns backups.Get-VBRRestorePointReturns restore points.Get-VBRServerReturns hosts connected to the backup infrastructure.Find-VBRViEntityLooks for VMware objects.