New-OBSchedule
Creates a new OBSchedule object based on the days of the week and times of day to create daily backups.
Syntax
Default (Default)
New-OBSchedule
[[-DaysOfWeek] <<DayOfWeek[]{Sunday>]
[[-TimesOfDay] <TimeSpan[]>]
Description
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.
Examples
EXAMPLE 1
New-OBSchedule -DaysOfWeek Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday -TimesOfDay 12:00,16:00
This example creates a schedule for backup.
Parameters
-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".
Parameter properties
Type: | DayOfWeek[]{Sunday | Monday | Tuesday | Wednesday | Thursday | Friday | Saturday} |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | 2 |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-TimesOfDay
Specifies the times of the day during which backup should run.
Parameter properties
Type: | TimeSpan[] |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | 3 |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |