Mount-DPMRecoveryPoint
掛接資料來源的複本或復原點 VHD。
Syntax
Mount-DPMRecoveryPoint
[-Datasource] <Datasource>
[[-RecoveryPoint] <RecoverySource>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Description
Mount-DPMRecoveryPoint Cmdlet 會掛接指定資料來源的複本或復原點 VHD。 使用掛接的 VHD 之後,請執行 Dismount-DPMRecoveryPoint Cmdlet 來卸載它。 保留掛接的 VHD 可能會導致備份作業失敗。
範例
範例 1:掛接複本 VHD
PS C:\>$ProtectionGroup = Get-DPMProtectionGroup
PS C:\> $DataSource = Get-DPMDatasource -ProtectionGroup $ProtectionGroup[0]
PS C:\> Mount-DPMRecoveryPoint -Datasource $DataSource[0]
第一個命令會使用 Get-DPMProtectionGroup Cmdlet,在 Data Protection Manager (DPM) 伺服器上取得保護群組,然後將它們儲存在$ProtectionGroup變數中。
第二個命令會使用 Get-DPMDatasource Cmdlet 來取得$ProtectionGroup陣列第一個保護群組中的資料來源。 此命令會將資料來源儲存在 $DataSource 變數中。
第三個命令會掛接$DataSource陣列中第一個資料來源的複本 VHD。
範例 2:掛接復原點 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]
第一個命令會使用 Get-DPMProtectionGroup Cmdlet,在 Data Protection Manager (DPM) 伺服器上取得保護群組,然後將它們儲存在$ProtectionGroup變數中。
第二個命令會使用 Get-DPMDatasource Cmdlet 來取得$ProtectionGroup陣列第一個保護群組中的資料來源。 此命令會將資料來源儲存在 $DataSource 變數中。
第三個命令會使用 Get-DPMRecoveryPoint Cmdlet 來取得$DataSource陣列中第一個資料來源的復原點,然後將它們儲存在$RecoveryPoints變數中。
第四個命令會掛接對應至$RecoveryPoints陣列中第一個復原點的 VHD。
參數
-Confirm
在執行 Cmdlet 前提示您確認。
Type: | SwitchParameter |
Aliases: | cf |
Position: | Named |
Default value: | False |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Datasource
指定要掛接其複本或復原點 VHD 的資料來源。
Type: | Datasource |
Position: | 0 |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-RecoveryPoint
指定資料來源的復原點。 如果指定此參數,則會掛接對應至此復原點的 VHD。
Type: | RecoverySource |
Position: | 1 |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-WhatIf
顯示執行 Cmdlet 後會發生的情況。 Cmdlet 並不會執行。
Type: | SwitchParameter |
Aliases: | wi |
Position: | Named |
Default value: | False |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |