Start-VBRRestoreVirtualDisks
Short Description
Restores disks from backups of physical or virtual machines and converts them to the VMDK, VHD or VHDX formats.
Platform: VMware, Hyper-V
Product Edition: Standard, Enterprise, Enterprise Plus, Veeam Universal License
Syntax
|
Start-VBRRestoreVirtualDisks [-RestorePoint] <COib> [-Server] <CHost> [-Path] <String> [-Datastore <VBRViDatastoreBase>] -RestoreDiskType <EVirtualDiskRestoreType> [-StorageFormat <VBRStorageFormatType>] [-Files <COIBFileInfo[]>] [-SourceShareCredentials <CCredentials>] [-TargetShareCredentials <CCredentials>] [-Reason <String>] [-EnableAntivirusScan] [-EnableYARAScan] [-YARAScanRule <String>] [-EnableEntireVolumeScan] [-ProceedToRecoveryIfThreatFound] [-RunAsync] [-Proxy <CViProxy[]>] [<CommonParameters>] |
Detailed Description
This cmdlet restores disks from backups of physical or virtual machines and converts them to the VMDK, VHD or VHDX formats. You restore disks from the following types of backups:
- Volume-level backups created by Veeam Agent for Microsoft Windows volume-level backups.
- Volume-level backups created by Veeam Agent for Linux volume-level backups.
- Backups of VMware vSphere virtual machines created by Veeam Backup & Replication.
- Backups of VMware Cloud Director virtual machines created by Veeam Backup & Replication.
- Backups of Microsoft Hyper-V virtual machines created by Veeam Backup & Replication.
- Backups of Amazon EC2 instances created by Veeam Backup for AWS.
- Backups of Microsoft Azure virtual machines created by Veeam Backup for Microsoft Azure.
- Backups of Google Compute Engine VM instances created by Google Cloud Plug-in for Veeam Backup & Replication.
The cmdlet allows you to scan the disks that you want to restore with the antivirus.
Run the Start-VBRRestoreVMFilesRestores VM configuration files. cmdlet to restore VM configuration files.
Note |
|
In case the antivirus detects the virus threat, Veeam Backup & Replication will cancel the restore session. |
Parameters
|
Parameter |
Description |
Type |
Required |
Position |
Accept Pipeline Input |
|---|---|---|---|---|---|
|
Datastore |
Specifies a target datastore. The cmdlet will register converted disks to this datastore.
Note: You must provide the
Accepts the |
|
False |
Named |
False |
|
EnableAntivirusScan |
Enables the secure restore option. Veeam Backup & Replication will trigger the antivirus software to scan selected machines before the restore. |
|
False |
Named |
False |
|
EnableEntireVolumeScan |
For secure restore. Enables the option for the antivirus to continue physical discs 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 |
|
Files |
Specifies the disks from the backup that you want to restore. Default: all.
Accepts the |
|
False |
Named |
True (ByPropertyName) |
|
Path |
Specifies the path to the folder on the target server. The cmdlet will register virtual disks in this folder. |
|
True |
2 |
False |
|
ProceedToRecoveryIfThreatFound |
For secure restore. Defines that if antivirus detects malware, the cmdlet will restore physical disks. |
|
False |
Named |
False |
|
Proxy |
Specifies an array of VMware proxies. The cmdlet will use these proxies during the restore.
Accepts the |
|
False |
Named |
False |
|
Reason |
Specifies the reason for performing the disk restore. |
|
False |
Named |
False |
|
RestoreDiskType |
Specifies the format to which you want to convert the resulting virtual disk:
|
|
True |
Named |
False |
|
RestorePoint |
Specifies the restore point from which you want to restore the disks.
Accepts the |
|
True |
0 |
True (ByPropertyName, ByValue) |
|
RunAsync |
Defines that the command returns immediately without waiting for the task to complete. |
|
False |
Named |
False |
|
Server |
Specifies the Windows host to which the disks should be restored. |
|
True |
1 |
False |
|
SourceShareCredentials |
Specifies the credentials for the backup repository. The cmdlet will export the backup from this repository. |
|
False |
Named |
False |
|
StorageFormat |
Specifies the format that will be used to convert the resulting virtual disk:
Default: |
|
False |
Named |
False |
|
TargetShareCredentials |
Specifies the credentials for the shared folder. The cmdlet will add the exported files to that folder. |
|
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. Restoring All Physical Disks from Volume-Level Backups by Veeam Agent
|
This example shows how to restore all physical disks from volume-level backups created by Veeam Agent operating in the standalone mode. The cmdlet will restore disks to a Veeam backup server. The disks are restored to the latest restore point. The resulting format is VMDK.
Perform the following steps:
|
Example 2. Restoring Specified Disks to Windows Server
|
This example shows how to restore specified disks to a Windows server added to Veeam Backup & Replication. The disks are restored to the latest restore point. The resulting format is VHDX.
Perform the following steps:
|
Example 3. Restoring Specified Disks to ESXi Host
|
This example shows how to restore selected disks to the
Perform the following steps:
|
Related Commands
Get-VBRBackupReturns backups.Get-VBRRestorePointReturns restore points.Get-VBRServerReturns hosts connected to the backup infrastructure.Get-VBRFilesInRestorePointReturns backup files in a selected restore point.Find-VBRViDatastoreLooks for VMware datastores.