Start-VBRComputerVolumeRestore
Short Description
Starts restore to original location of computer volumes backed-up with Veeam Agent for Microsoft Windows.
Product Edition: Standard, Enterprise, Enterprise Plus, Veeam Universal License
Syntax
|
Start-VBRComputerVolumeRestore -RestorePoint <COib> [-Volumes <VBRComputerDiskPartition[]>] [-EnableAntivirusScan] [-EnableYARAScan] [-YARAScanRule <String>] [-EnableEntireVolumeScan] [-Reason <String>] [-Force] [-RunAsync] [<CommonParameters>] |
Detailed Description
This cmdlet starts restore to original location of computer volumes backed-up with Veeam Agent for Microsoft Windows.
Important |
|
Consider the following:
|
Parameters
|
Parameter |
Description |
Type |
Required |
Position |
Accept Pipeline Input |
|---|---|---|---|---|---|
|
EnableAntivirusScan |
Enables the option to perform secure restore. If you provide this parameter, Veeam Backup & Replication will trigger the antivirus software to scan selected computer volumes before the restore. |
|
False |
Named |
False |
|
EnableEntireVolumeScan |
For secure restore. Defines that the antivirus will continue computer volumes scan after the first virus threat is found. If you provide this parameter, the cmdlet will generate a 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 start restore without showing warnings in the PowerShell console. |
|
False |
Named |
False |
|
Reason |
Specifies a reason of volume-level restore. The information you provide will be saved in the session history so that you can reference it later. |
|
False |
Named |
False |
|
RestorePoint |
Specifies a restore point of computers. The cmdlet will restore volumes these computers.
Accepts the |
|
True |
Named |
True (ByPropertyName, ByValue) |
|
RunAsync |
Defines that the command returns immediately without waiting for the task to complete. |
|
False |
Named |
False |
|
Volumes |
Specifies an array of computer volumes that you want to restore.
Accepts the |
|
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.
Output Object
Examples
Starting Restore to Original Location of Computer Volumes Backed-Up with Veeam Agent for Microsoft Windows
This example shows how to start a volume-level restore of the WinLaptop2017 computer.
|
$backup = Get-VBRBackup -Name "WinLaptop2017*" $restorepoint = Get-VBRRestorePoint -Backup $backup $volume = Get-VBRComputerDiskPartition -RestorePoint $restorepoint[3] Start-VBRComputerVolumeRestore -RestorePoint $restorepoint[3] -Volumes $volume[2] -EnableAntivirusScan -EnableEntireVolumeScan -Force |
Perform the following steps:
- Get the restore point:
- Run the
Get-VBRBackupReturns backups. cmdlet. Specify theNameparameter value. Save the result to the$backupvariable.Note: To get a list of restore points for a Veeam Agent job, you must provide the asterisks sign for the
Nameparameter value:Name "AgentJob*". Otherwise, theGet-VBRRestorePointcmdlet will not return any restore points for the Veeam Agent job. - Run the
Get-VBRRestorePointReturns restore points. cmdlet. Set the$backupvariable as theBackupparameter value. Save the result to the$restorepointvariable.The
Get-VBRRestorePointcmdlet will return an array of restore points. Mind the ordinal number of the necessary restore point (in our example, it is the fourth restore point in the array).
- Run the
- Run the
Get-VBRComputerDiskPartitionReturns volumes of computers backed-up with Veeam Agent for Microsoft Windows. cmdlet. Set the$restorepoint[3]variable as theRestorePointparameter value. Save the result to the$volumevariable.The
Get-VBRComputerDiskPartitioncmdlet will return an array of volumes. Mind the ordinal number of the necessary volumes (in our example, it is the third volume in the array). - Run the
Start-VBRComputerVolumeRestorecmdlet. Specify the following settings:- Set the
$restorepoint[3]variable as theRestorePointparameter value. - Set the
$volume[2]variable as theVolumesparameter value. - Provide the
EnableAntivirusScanparameter. - Provide the
EnableEntireVolumeScanparameter. - Provide the
Forceparameter.
- Set the
Related Commands
Get-VBRBackupReturns backups.Get-VBRRestorePointReturns restore points.Get-VBRComputerDiskPartitionReturns volumes of computers backed-up with Veeam Agent for Microsoft Windows.