Mount-DPMRecoveryPoint
Mounts the replica or recovery point VHD of a data source.
Syntax
Mount-DPMRecoveryPoint
[-Datasource] <Datasource>
[[-RecoveryPoint] <RecoverySource>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Description
The Mount-DPMRecoveryPoint cmdlet mounts the replica or recovery point VHD of the specified data source. After you have finished using the mounted VHD, dismount it by running the Dismount-DPMRecoveryPoint cmdlet. Keeping the VHDs mounted can result in backup job failures.
Examples
Example 1: Mount a replica VHD
PS C:\>$ProtectionGroup = Get-DPMProtectionGroup
PS C:\> $DataSource = Get-DPMDatasource -ProtectionGroup $ProtectionGroup[0]
PS C:\> Mount-DPMRecoveryPoint -Datasource $DataSource[0]
The first command uses the Get-DPMProtectionGroup cmdlet to get the protection groups on the Data Protection Manager (DPM) server, and then stores them in the $ProtectionGroup variable.
The second command uses the Get-DPMDatasource cmdlet to get the data sources in the first protection group of the $ProtectionGroup array. The command stores the data sources in the $DataSource variable.
The third command mounts the replica VHD of the first data source in the $DataSource array.
Example 2: Mount a recovery point VHD
PS C:\>$ProtectionGroup = Get-DPMProtectionGroup
PS C:\> $DataSource = Get-DPMDatasource -ProtectionGroup $ProtectionGroup[0]
PS C:\> $RecoveryPoints = Get-DPMRecoveryPoint -Datasource $Datasource[0]
PS C:\> Mount-DPMRecoveryPoint -Datasource $DataSource[0] -RecoveryPoint $RecoveryPoints[0]
The first command uses the Get-DPMProtectionGroup cmdlet to get the protection groups on the Data Protection Manager (DPM) server, and then stores them in the $ProtectionGroup variable.
The second command uses the Get-DPMDatasource cmdlet to get the data sources in the first protection group of the $ProtectionGroup array. The command stores the data sources in the $DataSource variable.
The third command uses the Get-DPMRecoveryPoint cmdlet to get the recovery points of the first data source in the $DataSource array, and then stores them in the $RecoveryPoints variable.
The fourth command mounts the VHD corresponding to the first recovery point in the $RecoveryPoints array.
Parameters
-Confirm
Prompts you for confirmation before running the cmdlet.
Type: | SwitchParameter |
Aliases: | cf |
Position: | Named |
Default value: | False |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Datasource
Specifies the data source whose replica or recovery point VHD you want to mount.
Type: | Datasource |
Position: | 0 |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-RecoveryPoint
Specifies a recovery point of the data source. If this parameter is specified, the VHD corresponding to this recovery point is mounted.
Type: | RecoverySource |
Position: | 1 |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-WhatIf
Shows what would happen if the cmdlet runs. The cmdlet is not run.
Type: | SwitchParameter |
Aliases: | wi |
Position: | Named |
Default value: | False |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |