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


Get-DPMPolicySchedule

Get-DPMPolicySchedule

Returns the schedule for protection jobs.

Syntax

Parameter Set: LongTerm
Get-DPMPolicySchedule [-ProtectionGroup] <ProtectionGroup> -LongTerm <DbEnums+LongTermLocation> {Online | Tape} [ <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 or shadow copy, and tape backups.

Parameters

-LongTerm<DbEnums+LongTermLocation>

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

-- Tape
-- Online
-- OnlineAndTape

Aliases

none

Required?

true

Position?

named

Default Value

none

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 on which this cmdlet operates. To obtain a ProtectionGroup object, use the Get-DPMProtectionGroup cmdlet.

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

Examples

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

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 short-term synchronization schedule from the protection group in $PGroup.

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

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

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.

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

Set-DPMPolicySchedule

Get-DPMProtectionGroup