Get-OBSchedule

Get-OBSchedule

Gets the OBSchedule object, which includes the days of the week and times of day to create daily backups, for the specified OBPolicy object.

语法

Parameter Set: Default
Get-OBSchedule [-Policy] <CBPolicy> [ <CommonParameters>]

详细说明

The Get-OBSchedule cmdlet gets the current schedule for backups in the backup policy (OBPolicy object). Backups are run at the times specified in the schedule. To change the schedule, use the Set-OBSchedule cmdlet.

参数

-Policy<CBPolicy>

Specifies the policy from which the schedule for backup is obtained.

别名

none

是否必需?

true

在哪里?

1

默认值

none

是否接受管道输入?

true (ByValue)

是否接受通配符?

false

<CommonParameters>

此 cmdlet 支持常见的参数:-Verbose、-Debug、-ErrorAction、-ErrorVariable、-OutBuffer 和 -OutVariable。有关详细信息,请参阅 TechNet 上的 about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216)。

输入

输入类型是可以传送到 cmdlet 的对象的类型。

  • None

输出

输出类型是 cmdlet 发出的对象的类型。

  • Microsoft.Internal.CloudBackup.Commands.OBSchedule

示例

EXAMPLE 1

This example gets a schedule for backup, recovery, or backup and recovery.

PS C:\> Get-OBPolicy | Get-OBSchedule

相关主题

Get-OBPolicy

Set-OBSchedule