Test-DPMTapeData

Test-DPMTapeData

Verifies a data set for a recovery point.

Syntax

Parameter Set: Default
Test-DPMTapeData [-RecoveryPoint] <RecoverySource> [-JobStateChangedEventHandler <JobStateChangedEventHandler> ] [-RecoveryPointLocation <RecoverySourceLocation> ] [ <CommonParameters>]

Detailed Description

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

Parameters

-JobStateChangedEventHandler<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.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-RecoveryPoint<RecoverySource>

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

Aliases

none

Required?

true

Position?

1

Default Value

none

Accept Pipeline Input?

true (ByValue)

Accept Wildcard Characters?

false

-RecoveryPointLocation<RecoverySourceLocation>

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.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

true (ByValue)

Accept Wildcard Characters?

false

<CommonParameters>

This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see    about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).

Inputs

The input type is the type of the objects that you can pipe to the cmdlet.

Outputs

The output type is the type of the objects that the cmdlet emits.

  • RecoveryPoint

Examples

Example 1: Verify a recovery point

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.

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

Copy-DPMTapeData

Get-DPMDatasource

Get-DPMProtectionGroup

Get-DPMRecoveryPoint

Get-DPMDatasource