Freigeben über


Test-DPMTapeData

Verifies a data set for a recovery point.

Syntax

Test-DPMTapeData
    [-RecoveryPoint] <RecoverySource>
    [-RecoveryPointLocation <RecoverySourceLocation>]
    [-JobStateChangedEventHandler <JobStateChangedEventHandler>]
    [<CommonParameters>]

Description

The Test-DPMTapeData cmdlet verifies a data set for a recovery point in System Center - Data Protection Manager (DPM). A recovery point is a point-in-time copy of a replica stored on a DPM server.

Examples

Example 1: Verify a recovery point

PS C:\>$PGroup = Get-DPMProtectionGroup -DPMServerName "Contoso-DPMServer"
PS C:\> $PObject = Get-DPMDatasource -ProtectionGroup $PGroup
PS C:\> $RPoints = Get-DPMRecoveryPoint -Datasource $PObject
PS C:\> $RPLocation = Get-DPMRecoveryPointLocation -RecoveryPoint $RPoints[1]
PS C:\> Test-DPMTapeData -RecoveryPoint $RPoints[1] -RecoveryPointLocation $RPLocation

The first command uses the Get-DPMProtectionGroup cmdlet to retrieve the protection group on the DPM server. The command stores the result in the $PGroup variable.

The second command uses the Get-DPMDatasource cmdlet to retrieve the data source for the protection group. The command stores the result in the variable named $PObject.

The third command uses the Get-DPMRecoveryPoint cmdlet to retrieve recovery points for the data source. The command stores the result in the variable named $RPoints.

The fourth command uses the Get-DPMRecoveryPointLocation cmdlet to retrieve the recovery point location for a point in $RPoints. The command stores the result in the variable named $RPLocation.

The final command uses the Test-DPMTapeData cmdlet to verify a data set for the second recovery point.

Parameters

-JobStateChangedEventHandler

Specifies an event handler for Job.StateChanged events. Use this parameter to build a graphical user interface based on cmdlets. Do not use this parameter in the DPM Management Shell.

Type:JobStateChangedEventHandler
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-RecoveryPoint

Specifies the recovery point for which this cmdlet verifies a data set.

Type:RecoverySource
Position:1
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-RecoveryPointLocation

Specifies the location of a recovery point that this cmdlet tests. To obtain a recovery point location object, use the Get-DPMRecoveryPointLocation cmdlet. A recovery item may exist in more than one location for the same point in time, such as on a disk and tape, or on two separate tapes.

Type:RecoverySourceLocation
Position:Named
Default value:None
Required:False
Accept pipeline input:True
Accept wildcard characters:False

Outputs

RecoveryPoint