Get-DPMPolicySchedule

Get-DPMPolicySchedule

Returns the schedule for protection jobs.

Syntax

Parameter Set: LongTerm
Get-DPMPolicySchedule [-ProtectionGroup] <ProtectionGroup> -LongTerm <LongTermLocation> [ <CommonParameters>]

Parameter Set: OffsetSchedule
Get-DPMPolicySchedule [-ProtectionGroup] <ProtectionGroup> -OffsetSchedule [ <CommonParameters>]

Parameter Set: ShortTerm
Get-DPMPolicySchedule [-ProtectionGroup] <ProtectionGroup> -ShortTerm [ <CommonParameters>]

Detailed Description

The Get-DPMPolicySchedule cmdlet returns the schedule for protection jobs such as synchronization, recovery point creation (shadow copy), and tape backups.

Parameters

-LongTerm<LongTermLocation>

Specifies the long term protection type for a protection group. Valid values for this parameter are:

-- Tape
-- Online
-- OnlineAndTape

Aliases

none

Required?

true

Position?

named

Default Value

Tape

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-OffsetSchedule

Indicates that the cmdlet returns the schedule for protection jobs that use an offset schedule.

Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-ProtectionGroup<ProtectionGroup>

Specifies a protection group.

Aliases

none

Required?

true

Position?

1

Default Value

none

Accept Pipeline Input?

true (ByValue)

Accept Wildcard Characters?

false

-ShortTerm

Indicates that the cmdlet returns the schedule for short-term disk or short-term tape protection jobs.

Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

false

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.

  • Schedule

Notes

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

    For technical information, type "Get-Help Get-DPMPolicySchedule -full".

Examples

Example 1: Get a short-term synchronization schedule for a protection group

This example returns the short-term synchronization schedule of a protection group.

The first command gets the protection group from the DPM server named DPMServer02, and stores the protection group in the $Pg variable.

The second command gets the short-term synchronization schedule from the protection group stored in $Pg.

PS C:\> $Pg = Get-ProtectionGroup -DPMServerName "DPMServer02"
PS C:\> Get-DPMPolicySchedule -ProtectionGroup $Pg -ShortTerm

Example 2: Get a long-term synchronization schedule for a protection group

This example returns the long-term synchronization schedule of a protection group.

The first command gets the protection group from the DPM server named DPMServer02, and stores the protection group in the $Pg variable.

The second command gets the long-term synchronization schedule from the protection group stored in $Pg.

PS C:\> $Pg = Get-ProtectionGroup -DPMServerName "DPMServer02"
PS C:\> Get-DPMPolicySchedule -ProtectionGroup $Pg -LongTerm

Set-DPMPolicySchedule

Get-ProtectionGroup