Share via


Get-DPMPolicySchedule

Returns the schedule for protection jobs.

Syntax

OffsetSchedule

Get-DPMPolicySchedule
    [-ProtectionGroup] <ProtectionGroup>
    [-OffsetSchedule]
    [<CommonParameters>]

ShortTerm

Get-DPMPolicySchedule
    [-ProtectionGroup] <ProtectionGroup>
    [-ShortTerm]
    [<CommonParameters>]

LongTerm

Get-DPMPolicySchedule
    [-ProtectionGroup] <ProtectionGroup>
    -LongTerm <LongTermLocation>
    [<CommonParameters>]

Description

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

Examples

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

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

The first command gets the protection group from the System Center 2019 - Data Protection Manager (DPM) server named DPMServer02, and then stores the group in the $PGroup variable.

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

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

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

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

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

Parameters

-LongTerm

Specifies the long term protection type for a protection group.

The acceptable values for this parameter are:

  • Tape
  • Online
  • OnlineAndTape

Parameter properties

Type:LongTermLocation
Default value:None
Accepted values:Online, Tape
Supports wildcards:False
DontShow:False

Parameter sets

LongTerm
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-OffsetSchedule

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

Parameter properties

Type:SwitchParameter
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

OffsetSchedule
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-ProtectionGroup

Specifies a protection group on which this cmdlet operates. To obtain a ProtectionGroup object, use the Get-DPMProtectionGroup cmdlet.

Parameter properties

Type:ProtectionGroup
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:1
Mandatory:True
Value from pipeline:True
Value from pipeline by property name:False
Value from remaining arguments:False

-ShortTerm

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

Parameter properties

Type:SwitchParameter
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

ShortTerm
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

Outputs

Schedule