Start-VBRNASInstantRecovery
Short Description
Starts an instant restore of backups created by the file backup job.
Applies to
Product Edition: Standard, Enterprise, Enterprise Plus, Veeam Universal License
Syntax
Start-VBRNASInstantRecovery -RestorePoint <VBRUnstructuredBackupRestorePoint[]> [-Permissions <VBRNASPermissionSet[]>] [-MountOptions <VBRNASInstantRecoveryMountOptions>] [-Reason <string>] [-RunAsync] [-WaitAllSessions] [<CommonParameters>] |
Detailed Description
This cmdlet starts an instant restore of backups created by the file backup job. It starts agents, creates a file share on the specified repository (the file share name is retrieved from the file share backup) and creates records in the database.
Parameters
Parameter | Description | Type | Required | Position | Accept Pipeline Input |
---|---|---|---|---|---|
RestorePoint | Specifies an array of restore points. The cmdlet will start an instant recovery for each of the specified restore points. | Accepts the VBRUnstructuredBackupRestorePoint[] object. To get this object, run the Get-VBRUnstructuredBackupRestorePoint cmdlet. | True | 0 | True (ByValue, ByPropertyName) |
Permissions | Specifies an array of permission sets. The cmdlet will start an instant recovery by applying these permission sets. | Accepts the VBRNASPermissionSet[] object. To create this object, run the New-VBRNASPermissionSet cmdlet. | False | 1 | False |
MountOptions | Specifies a mapping configuration for instant restore of file backups. If the parameter is not defined, the cmdlet will use automatic mapping. | Accepts the VBRNASInstantRecoveryMountOptions object. To create this object, run the New-VBRNASInstantRecoveryMountOptions cmdlet. | False | 2 | False |
Reason | Specifies the reason for starting the instant restore of file backups. | String | False | Named | False |
RunAsync | Defines that the command returns immediately without waiting for the task to complete. | SwitchParameter | False | Named | False |
WaitAllSessions | If the parameter is set to True, the cmdlet will wait for all sessions to finish before returning the result. In this case, the result is sorted according to the order in which restore points are specified. Sessions are also started in this order. If the parameter is set to False, the cmdlet will return the result after each session finishes. In this case, the result is returned in nondeterministic order. Note: This parameter is used with the RunAsync parameter that must be set to False. | SwitchParameter | False | Named | False |
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see Microsoft Docs.
Output Object
The cmdlet returns the VBRNASInstantRecovery[] object that defines the following settings: session ID, backup name (the same as the job name), creation time of the used restore point, job type (it is always equal to EDbJobType.InstantFileShareRestore), ID and name of the mount server where the restore was started, UNC path of the published SMB share with file backup contents, session name, permission settings, mount state.
Examples
Example 1. Starting Instant Restore for File Backups with Automatic Mapping
The following example shows how to start instant restore for file backups with automatic mapping.
|
Example 2. Starting Instant Restore for File Backups with Manual Mapping
The following example shows how to start instant restore for file backups with manual mapping.
|
Related Commands