共用方式為


Start-DPMOnlineRecatalog

傳回 DPM 恢復點的詳細數據清單。

語法

Start-DPMOnlineRecatalog
     [-RecoveryPoint] <RecoverySource>
     [-RecoveryPointLocation <RecoverySourceLocation>]
     [-JobStateChangedEventHandler <JobStateChangedEventHandler>]
     [-WhatIf]
     [-Confirm]
     [<CommonParameters>]

Description

Start-DPMOnlineRecatalog Cmdlet 會傳回 System Center - Data Protection Manager (DPM) 恢復點的數據詳細數據。 您可以使用這項資訊來執行部分復原或復原選取的檔案。

範例

範例 1:啟動在線目錄

PS C:\>$MPGroup = Get-DPMProtectionGroup -DPMServerName "DPMServer07"
PS C:\> $PObject = Get-DPMDatasource -ProtectionGroup $MPGroup
PS C:\> $RPoints = Get-DPMRecoveryPoint -Datasource $PObject
PS C:\> $RPLocation = Get-DPMRecoveryPointLocation -RecoveryPoint $RPoint
PS C:\> Start-DPMOnlineRecatalog -RecoveryPoint $RPoints[1] -RecoveryPointLocation $RPLocation

第一個命令會使用 Get-DPMProtectionGroup Cmdlet,為名為 DPMServer07 的 DPM 伺服器取得保護群組。 命令會將保護群組儲存在 $MPGroup 變數中。

第二個命令會使用 Get-DPMDatasource Cmdlet 來取得$MPGroup保護群組的數據源,然後將該數據源儲存在$PObject變數中。

第三個命令會使用 Get-DPMRecoveryPoint Cmdlet 來取得$PObject數據源的恢復點,然後將這些恢復點儲存在$RPoints變數中。

第四個命令會使用 Get-DPMRecoveryPointLocation Cmdlet 來取得$RPoint恢復點的恢復點位置,並將恢復點位置物件儲存在$RPLocation變數中。

第五個命令會針對$RPoints中的恢復點啟動目錄動作。 此命令會使用標準陣語法來選取該陣列的第二個成員。 命令會將恢復點位置指定為 $RPLocation 中的物件。

參數

-Confirm

在執行 Cmdlet 之前,提示您進行確認。

類型:SwitchParameter
別名:cf
Position:Named
預設值:False
必要:False
接受管線輸入:False
接受萬用字元:False

-JobStateChangedEventHandler

指定 Job.StateChanged 事件的事件處理程式。 使用此參數,根據 Cmdlet 建置圖形用戶介面。 請勿在 DPM 管理命令介面中使用此參數。

類型:JobStateChangedEventHandler
別名:Handler
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

-RecoveryPoint

指定此 Cmdlet 開始編錄的恢復點。 若要取得恢復點物件,請使用 Get-DPMRecoveryPoint Cmdlet。

類型:RecoverySource
Position:1
預設值:None
必要:True
接受管線輸入:True
接受萬用字元:False

-RecoveryPointLocation

指定此 Cmdlet 取得之恢復點的恢復點位置。 若要取得恢復點位置物件,請使用 Get-DPMRecoveryPointLocation Cmdlet。 如果復原專案發生在多個恢復點中,您必須指定恢復點的位置。

類型:RecoverySourceLocation
Position:Named
預設值:None
必要:False
接受管線輸入:True
接受萬用字元:False

-WhatIf

顯示 Cmdlet 執行時會發生什麼事。 Cmdlet 未執行。

類型:SwitchParameter
別名:wi
Position:Named
預設值:False
必要:False
接受管線輸入:False
接受萬用字元:False

輸出

Job