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>

Indicates that the cmdlet displays the status of the operation to the user.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-RecoveryPoint<RecoverySource>

Specifies a recovery point.

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

Notes

  • For more information, type "Get-Help Test-DPMTapeData -detailed".

Examples

Example 1: Verify a recovery point

This example verifies a recovery point at a specified location.

The first command uses the Get-ProtectionGroup cmdlet to retrieve the protection group on the DPM server, and then stores the result in the variable named $PGroup.

The second command uses the Get-Datasource cmdlet to retrieve the data source for the protection group, and then stores the result in the variable named $DSource.

The third command uses the Get-RecoveryPoint cmdlet to retrieve the recovery point for the data source, and then stores the result in the variable named $RPoint.

The fourth command uses the Get-RecoveryPointLocation cmdlet to retrieve the recovery point location, and then stores the result in the variable named $RS1.

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

PS C:\> $PGroup = Get-ProtectionGroup -DPMServerName "Contoso-DPMServer"
PS C:\> $DSource = Get-Datasource -ProtectionGroup $PGroup
PS C:\> $RPoint = Get-RecoveryPoint -Datasource $DSource
PS C:\> $RS1 = Get-RecoveryPointLocation -RecoveryPoint $RPoint[1]
PS C:\> Test-DPMTapeData -RecoveryPoint $RPoint[1] -RecoveryPointLocation $RS1

Copy-DPMTapeData