Поделиться через


Get-DPMRecoveryPointLocation

Get-DPMRecoveryPointLocation

Gets the location of a recovery point.

Syntax

Parameter Set: Default
Get-DPMRecoveryPointLocation [-RecoveryPoint] <RecoverySource> [ <CommonParameters>]

Detailed Description

The Get-DPMRecoveryPointLocation cmdlet gets the location of a recovery point. This cmdlet returns an object that indicates whether the recovery point is located on disk or tape. If the recovery point is on tape, the cmdlet returns information about the tape.

Parameters

-RecoveryPoint<RecoverySource>

Specifies a recovery point for which this cmdlet gets the location. To obtain a recovery point location object, use the Get-DPMRecoveryPoint cmdlet.

Aliases

none

Required?

true

Position?

1

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.

  • RecoveryPointLocation

Examples

Example 1: Get a recovery point location

The first command gets the protection group on the DPM server named DPMServer02. The command stores the protection group in the $PGroup variable.

The second command gets the list of protected and unprotected data in the protection group in $PGroup. The command stores the results in the $PObject variable.

The third command gets the recovery point for the data source in $DSource, and then stores the recovery point in the $RPoint variable.

The fourth command gets the location for the recovery point in $RPoint.

PS C:\> $PGroup = Get-DPMProtectionGroup -DPMServerName "DPMServer02"
PS C:\> $PObject = Get-DPMDatasource -ProtectionGroup $PGroup
PS C:\> $RPoint = Get-DPMRecoveryPoint -Datasource $PObject
PS C:\> Get-DPMRecoveryPointLocation -RecoveryPoint $RPoint

Get-DPMDatasource

Get-DPMProtectionGroup

Get-DPMRecoveryPoint

Remove-DPMRecoveryPoint

New-DPMRecoveryPoint