Start-VBREpInstantRecovery
Short Description
Starts instant recovery of physical computers to virtual infrastructure.
Platform: Hyper-V
Product Edition: Standard, Enterprise, Enterprise Plus, Veeam Universal License
Syntax
|
Start-VBREpInstantRecovery [-RestorePoint] <COib> [-Server] <CHost> [-Path] <String> [-VMName <String>] [-PowerUp <Boolean>] [-NICsEnabled <Boolean>] [-PreserveMACs <Boolean>] [-Reason <String>] [-Credentials <CCredentials>] [-EnableAntivirusScan] [-EnableYARAScan] [-YARAScanRule <String>] [-EnableEntireVolumeScan] [-VirusDetectionAction <VBRVirusDetectionAction>] [<CommonParameters>] |
Detailed Description
This cmdlet starts an instant recovery session for physical machines. The process restores a backup of a physical computer to a virtualization host.
Parameters
|
Parameter |
Description |
Type |
Required |
Position |
Accept Pipeline Input |
|---|---|---|---|---|---|
|
Credentials |
Specifies the credentials you want to use for authenticating with the VM.
Accepts the |
|
False |
Named |
False |
|
EnableAntivirusScan |
Enables the option to perform secure restore. Veeam Backup & Replication will trigger the antivirus software to scan selected VMs before the restore. |
|
False |
Named |
False |
|
EnableEntireVolumeScan |
For secure restore. Enables the option for the antivirus to continue machine 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 |
|
NICsEnabled |
If set to |
|
False |
Named |
False |
|
Path |
Used to redirect the redo logs. Specifies the path to the folder where you want to store the changes made to the VM during the instant recovery. |
|
True |
2 |
False |
|
PowerUp |
If set to |
|
False |
Named |
False |
|
PreserveMACs |
If set to Note: If the original computer keeps running, preserving the MAC address will cause conflict. Preserving the MAC address is useful in case the original computer will not be used in future — in this case, the restored VM will be able to use the MAC settings used by its applications, if any are installed. |
|
False |
Named |
False |
|
Reason |
Specifies the reason for performing restore of the selected endpoint. The information you provide will be saved in the session history so that you can reference it later. |
|
False |
Named |
False |
|
RestorePoint |
Specifies the restore point of the physical computer to which you want to restore the VM.
Accepts the |
|
True |
0 |
True (ByPropertyName, ByValue) |
|
Server |
Specifies the host where you want to locate the restored VM.
Accepts the |
|
True |
1 |
False |
|
VirusDetectionAction |
For secure restore. Specifies secure restore action when the virus threat is detected.
|
|
False |
Named |
False |
|
VMName |
Specifies the name you want to apply to the restored VM. By default, the original VM name is applied. |
|
False |
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.
Examples
Starting Secure Restore of Selected Machine
This example shows how to run secure restore of the selected machine. The job will run with the following settings:
- The antivirus will continue VM scan after the first virus threat is found
- In case the threat is detected, Veeam Backup & Replication will restore the machine with disabled NIC
- The
RunAsyncparameter is set to bring the process to the background.
|
$restorepoint = Get-VBRRestorePoint Start-VBREpInstantRecovery -RestorePoint $restorepoint[1] -RunAsync -EnableAntivirusScan -EnableEntireVolumeScan -VirusDetectionAction DisableNetwork |
Perform the following steps:
- Run the
Get-VBRRestorePointReturns restore points. cmdlet. Save the result to the$restorepointvariable.The
Get-VBRRestorePointReturns restore points. cmdlet will return an array of restore points. Mind the ordinal number of the necessary restore point (in our example, it is the second restore point in the array). - Run the
Start-VBREpInstantRecoverycmdlet. Specify the following settings:- Set the
$restorepointvariable as theRestorePointparameter value. - Provide the
RunAsyncparameter value. - Provide the
EnableAntivirusScanparameter value. - Provide the
EnableEntireVolumeScanparameter value. - Set the
DisableNetworkoption for theVirusDetectionActionparameter.
- Set the
Related Commands
Get-VBRRestorePointReturns restore points.