Get-PolicySchedule

Get-PolicySchedule

Returns the schedule for various protection jobs like synchronization, recovery point creation (shadow copy), and tape backups.

Syntax

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


Get-PolicySchedule [-ProtectionGroup] <ProtectionGroup> -LongTerm [<CommonParameters>]


Get-PolicySchedule [-ProtectionGroup] <ProtectionGroup> -ShortTerm <Nullable`1> [<CommonParameters>]

Detailed Description

The Get-PolicySchedule cmdlet returns the schedule for various protection jobs like synchronization, recovery point creation (shadow copy), and tape backups.

Parameters

-ProtectionGroup

The name of a protection group.

Attributes

Name Value

Required?

true

Accept wildcard characters?

false

Accept Pipeline Input?

true (ByValue)

Position?

0

-LongTerm <Enum>

Indicates that the protection group is set to long-term tape protection. This parameter can take the values Tape, Online, and OnlineAndTape.

Attributes

Name Value

Required?

true

Accept wildcard characters?

false

Accept Pipeline Input?

false

Position?

named

-OffsetSchedule

The interval, in minutes, by which the synchronization will be offset. This can range between 0 and 14 minutes. This helps reduce the load on the DPM server.

Attributes

Name Value

Required?

true

Accept wildcard characters?

false

Accept Pipeline Input?

false

Position?

named

-ShortTerm

Indicates that the protection group will be on disk, on tape, or on neither, if nothing is specified.

Attributes

Name Value

Required?

true

Accept wildcard characters?

false

Accept Pipeline Input?

false

Position?

named

-CommonParameter

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

Input and Return Types

The input type is the type of the objects that you can pipe to the cmdlet. The return type is the type of the objects that the cmdlet emits.

Notes

  • For more information, type "Get-Help Get-PolicySchedule -detailed".
    For technical information, type "Get-Help Get-PolicySchedule -full".

    Additionally, any updated information about the cmdlet will be available at https://go.microsoft.com/fwlink/?LinkId=95130.

Examples

EXAMPLE 1

$pg = Get-ProtectionGroup -DPMServerName TestingServer 
Get-PolicySchedule -ProtectionGroup $pg -ShortTerm

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

EXAMPLE 2

$pg = Get-ProtectionGroup -DPMServerName TestingServer 
Get-PolicySchedule -ProtectionGroup $pg -LongTerm

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