Condividi tramite


Get-DPMRecoveryPoint

Get-DPMRecoveryPoint

Gets recovery points for a data source.

Syntax

Parameter Set: Datasource
Get-DPMRecoveryPoint [-Datasource] <Datasource> [-Async] [-Online] [-OnlyActive] [ <CommonParameters>]

Parameter Set: Tape
Get-DPMRecoveryPoint [-Tape] <Media> [ <CommonParameters>]

Detailed Description

The Get-DPMRecoveryPoint cmdlet gets all available recovery points for a data source.

Parameters

-Async

Indicates that the command runs asynchronously. When you run a command asynchronously, the command prompt returns immediately even if the job takes an extended time to finish.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-Datasource<Datasource>

Specifies a data source object for which this cmdlet gets recovery points. A data source can be a file system share or volume for the Windows operating system, Microsoft SQL Server database, Microsoft Exchange Server storage group, Microsoft SharePoint farm, Microsoft Virtual Machine, DPM database, or system state that is a member of a protection group.

Aliases

none

Required?

true

Position?

1

Default Value

none

Accept Pipeline Input?

True (ByValue)

Accept Wildcard Characters?

false

-Online

Specifies that DPM enables online protection.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-OnlyActive

Indicates that this cmdlet returns only recovery points that have not expired.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-Tape<Media>

Specifies a tape from which this cmdlet gets recovery points. To obtain a Tape object, use the Get-DPMTape 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.

  • RecoveryPoint

Examples

Example 1: Get a recovery point

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

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

The third command gets the recovery point for the data source stored in $PObjects.

PS C:\> $PGroup = Get-DPMProtectionGroup -DPMServerName "DPMServer02"
PS C:\> $PObjects = Get-DPMDatasource -ProtectionGroup $PGroup
PS C:\> Get-DPMRecoveryPoint -Datasource $PObjects 

Get-DPMProtectionGroup

Get-DPMDatasource

New-DPMRecoveryPoint

Remove-DPMRecoveryPoint

Get-DPMRecoveryPointLocation