New-OBSchedule

Creates a new OBSchedule object based on the days of the week and times of day to create daily backups.

语法

Default (默认值)

New-OBSchedule

    [[-DaysOfWeek] <<DayOfWeek[]{Sunday>]
    [[-TimesOfDay] <TimeSpan[]>]

说明

The New-OBSchedule cmdlet creates a new OBSchedule object which specifies the when the backup should happen in terms of the days of the week and times of the day. By default the schedule is created at 9:00PM every Sunday.

To use Microsoft Azure Backup cmdlets, the user needs to be an administrator on the protected machine.

示例

EXAMPLE 1

 New-OBSchedule -DaysOfWeek Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday -TimesOfDay 12:00,16:00

This example creates a schedule for backup.

参数

-DaysOfWeek

Specifies the days of the week on which backup should run. The following values are supported for this parameter - "Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday" and "Saturday".

参数属性

类型:DayOfWeek[]{Sunday | Monday | Tuesday | Wednesday | Thursday | Friday | Saturday}
默认值:None
支持通配符:False
不显示:False

参数集

(All)
Position:2
必需:False
来自管道的值:False
来自管道的值(按属性名称):False
来自剩余参数的值:False

-TimesOfDay

Specifies the times of the day during which backup should run.

参数属性

类型:

TimeSpan[]

默认值:None
支持通配符:False
不显示:False

参数集

(All)
Position:3
必需:False
来自管道的值:False
来自管道的值(按属性名称):False
来自剩余参数的值:False

输入

None

输出

Microsoft.Internal.CloudBackup.Commands.OBSchedule