New-OBSchedule
New-OBSchedule
Creates a new OBSchedule object based on the days of the week and times of day to create daily backups.
语法
Parameter Set: Default
New-OBSchedule [[-DaysOfWeek] <DayOfWeek[]> ] [[-TimesOfDay] <TimeSpan[]> ] [[-WeeklyFrequency] <Int32> ] [ <CommonParameters>]
详细说明
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.
参数
-DaysOfWeek<DayOfWeek[]>
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”.
别名 |
none |
是否必需? |
false |
在哪里? |
2 |
默认值 |
none |
是否接受管道输入? |
false |
是否接受通配符? |
false |
-TimesOfDay<TimeSpan[]>
Specifies the times of the day during which backup should run.
别名 |
none |
是否必需? |
false |
在哪里? |
3 |
默认值 |
none |
是否接受管道输入? |
false |
是否接受通配符? |
false |
-WeeklyFrequency<Int32>
别名 |
none |
是否必需? |
false |
在哪里? |
4 |
默认值 |
none |
是否接受管道输入? |
false |
是否接受通配符? |
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 creates a schedule for backup.
PS C:\> New-OBSchedule -DaysOfWeek Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday -TimesOfDay 12:00,16:00