Start-VBRHvInstantRecovery
Short Description
Starts Hyper-V Instant Recovery.
Platform: Hyper-V
Product Edition: Standard, Enterprise, Enterprise Plus, Veeam Universal License
Syntax
|
Start-VBRHvInstantRecovery [-RestorePoint] <COib> [-Server <CHost>] [-Path <String>] [-VMName <String>] [-PreserveVmID <Boolean>] [-PowerUp <Boolean>] [-RegisterAsClusterResource] [-NICsEnabled <Boolean>] [-PreserveMACs <Boolean>] [-Reason <String>] [-Credentials <CCredentials>] [-Force] [-EnableAntivirusScan] [-EnableYARAScan] [-YARAScanRule <String>] [-EnableEntireVolumeScan] [-VirusDetectionAction <VBRVirusDetectionAction>] [-NetworkMapping <VBRHvInstantRecoveryNetworkMappingRule[]>] [-HelperAppliance <VBRHvInstantRecoveryHelperAppliance>] [-DisableDiskAllocation] [-DiskMappingRule <VBRHvVirtualDeviceMappingRule[]>] [<CommonParameters>] |
Detailed Description
This cmdlet starts Instant Recovery to Microsoft Hyper-V. The Instant Recovery for Microsoft Hyper-V process creates a copy of a workload in a target location reading data from the directly from a compressed and deduplicated backup file. For the list of workload types that you can restore, see in the Instant Recovery to Microsoft Hyper-V section in the Veeam Backup & Replication User Guide.
With this cmdlet, you can perform the following recover scenarios:
- Restore to original location
- Restore to original location with different settings
- Restore to another location
- Secure restore
The recovered VM runs from a backup and does not provide a wholly functioning service. You need to finalize the successful instant recovery by one of the following steps:
- Remove the recovered VM. You can stop publishing the recovered VM and discard the changes made to it while it was running from backup. To do this, run the
Stop-VBRInstantRecoveryStops running Instant Recovery sessions. cmdlet. - Migrate the recovered VM to the production. To do this, run the
Start-VBRHvInstantRecoveryMigrationPerforms migration of instantly recovered VMs to a Hyper-V host. cmdlet.
Run the Restart-VBRInstantRecoveryRestarts a failed Hyper-V Instant Recovery session. cmdlet to restart the Instant Recovery session if it failed for some reason.
Run the Get-VBRInstantRecoveryReturns running Instant Recovery sessions. cmdlet to get the session status.
Note |
|
Parameters
|
Parameter |
Description |
Type |
Required |
Position |
Accept Pipeline Input |
|---|---|---|---|---|---|
|
Credentials |
Used to access VMs stored on shared folders. Specifies the credentials you want to use to authenticate with the shared folder. |
|
False |
Named |
False |
|
DisableDiskAllocation |
Defines whether to allocate disk space. |
|
False |
Named |
False |
|
DiskMappingRule |
Specifies backed-up virtual disk mapping settings.
Accepts the |
|
False |
Named |
False |
|
EnableAntivirusScan |
Enables secure restore. Veeam Backup & Replication will trigger the antivirus software to scan the selected workloads before the restore. |
|
False |
Named |
False |
|
EnableEntireVolumeScan |
For secure restore. Defines that the antivirus will continue workload 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 even if the geographic location of the repository where backups reside and the target host location do not match. The cmdlet will not show any warnings in the PowerShell console. |
|
False |
Named |
False |
|
HelperAppliance |
Specifies settings of a helper appliance used to restore Linux-based VMs. Note: This parameter applies if you perform instant recovery for workloads other tha Microsoft Hyper-V VMs.
Accepts the |
|
False |
Named |
True (ByPropertyName, ByValue) |
|
NetworkMapping |
Specifies an array of network mapping rules. These rules specify how to map networks in the original site with networks in the target site (where the recovered VM will reside). Note: This parameter applies if you perform instant recovery of Veeam Agent computers.
Accepts the |
False |
Named |
False |
|
|
NICsEnabled |
Defines whether to connect the restored VM to the network:
|
|
False |
Named |
False |
|
Path |
To redirect the redo logs. Specifies the path to the folder where you want to restore the VM.
Note: This parameter is required if you provide the |
|
False |
Named |
False |
|
PowerUp |
Defines whether to power on the VM right after restore:
|
|
False |
Named |
False |
|
PreserveMACs |
Defines whether the restored VM gets the MAC address of the original workload:
Note: If the original workload keeps running, preserving the MAC address will cause conflict. Preserving the workload address is useful if the original VM 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 |
|
PreserveVmID |
Defines whether the restored VM gets the ID of the original workload:
|
|
False |
Named |
False |
|
Reason |
Specifies the reason for performing restore of the selected workload. The information you provide will be saved in the session history so that you can reference it later. |
|
False |
Named |
False |
|
RegisterAsClusterResource |
Defines that the restored VM will be registered as a part of a cluster in case you restore the VM to a clustered host. |
|
False |
Named |
False |
|
RestorePoint |
Specifies a restore point to which you want to restore the workload.
Accepts the |
|
True |
0 |
True (ByPropertyName, ByValue) |
|
Server |
Specifies the host where the restored VM will reside. |
|
False |
Named |
False |
|
VirusDetectionAction |
For secure restore. Specifies the secure restore action when the infection is detected.
Accepts the |
|
False |
Named |
False |
|
VMName |
Specifies the name you want to apply to the restored VM. By default, the original 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
Example 1. Starting Instant Recovery of VM
|
The example shows how to start Instant Recovery of the VM.
Perform the following steps:
|
Example 2. Starting Instant Recovery of VM with Different Settings
|
The example shows how to start Instant Recovery of the VM. The job will run with the following settings:
Perform the following steps:
|
Example 3. Starting Secure Restore of VM
|
The example shows how to run the secure restore of the selected VM. The job will run with the following settings:
Perform the following steps:
|
Related Commands
Get-VBRRestorePointReturns restore points.Get-VBRServerReturns hosts connected to the backup infrastructure.Get-VBRLocationReturns geographic locations created in Veeam Backup & Replication.