New-OBSchedule
Creates a new OBSchedule object based on the days of the week and times of day to create daily backups.
Syntax
New-OBSchedule
[[-DaysOfWeek] <DayOfWeek[]{Sunday | Monday | Tuesday | Wednesday | Thursday | Friday | Saturday}>]
[[-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".
Type: | DayOfWeek[]{Sunday | Monday | Tuesday | Wednesday | Thursday | Friday | Saturday} |
Position: | 2 |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-TimesOfDay
Specifies the times of the day during which backup should run.
Type: | TimeSpan[] |
Position: | 3 |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Inputs
None
Outputs
Microsoft.Internal.CloudBackup.Commands.OBSchedule