Get-DPMPolicySchedule

Get-DPMPolicySchedule

Returns the schedule for protection jobs.

構文

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>]

詳細説明

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

パラメーター

-LongTerm<DbEnums+LongTermLocation>

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

-- Tape
-- Online
-- OnlineAndTape

エイリアス

none

必須?

true

位置は?

named

既定値

none

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-OffsetSchedule

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

エイリアス

none

必須?

true

位置は?

named

既定値

none

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-ProtectionGroup<ProtectionGroup>

Specifies a protection group.

エイリアス

none

必須?

true

位置は?

1

既定値

none

パイプライン入力を許可する

true (ByValue)

ワイルドカード文字を許可する

false

-ShortTerm

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

エイリアス

none

必須?

true

位置は?

named

既定値

none

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

<CommonParameters>

このコマンドレットは次の共通パラメーターをサポートします。-Verbose、-Debug、-ErrorAction、-ErrorVariable、-OutBuffer、-OutVariable.詳細については、以下を参照してください。 about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216)。

入力

入力型は、コマンドレットにパイプできるオブジェクトの型です。

出力

出力型は、コマンドレットによって生成されるオブジェクトの型です。

  • Schedule

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

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

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-DPMProtectionGroup