Dismount-DPMRecoveryPoint
Dismounts the replica or recovery point VHD of a data source.
Syntax
Dismount-DPMRecoveryPoint
[-Datasource] <Datasource>
[[-RecoveryPoint] <RecoverySource>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Description
The Dismount-DPMRecoveryPoint cmdlet dismounts a previously mounted replica or recovery point VHD of the specified data source. Keeping the VHDs mounted can result in backup job failures.
Examples
Example 1: Dismount a replica VHD
PS C:\>$ProtectionGroup = Get-DPMProtectionGroup
PS C:\> $DataSource = Get-DPMDatasource -ProtectionGroup $ProtectionGroup[0]
PS C:\> Dismount-DPMRecoveryPoint -Datasource $DataSource
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 dismounts the replica VHD of the first data source in the $DataSource array.
Example 2: Dismount 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:\> Dismount-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 in 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 dismounts 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 dismount.
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 dismounted.
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 |