Get-DPMPolicySchedule

Returns the schedule for protection jobs.

Syntax

Get-DPMPolicySchedule
   [-ProtectionGroup] <ProtectionGroup>
   [-OffsetSchedule]
   [<CommonParameters>]
Get-DPMPolicySchedule
   [-ProtectionGroup] <ProtectionGroup>
   [-ShortTerm]
   [<CommonParameters>]
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
Type:LongTermLocation
Accepted values:Online, Tape
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-OffsetSchedule

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

Type:SwitchParameter
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-ProtectionGroup

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

Type:ProtectionGroup
Position:1
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-ShortTerm

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

Type:SwitchParameter
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

Outputs

Schedule