New-OBSchedule
New-OBSchedule
Creates a new OBSchedule object based on the days of the week and times of day to create daily backups.
Syntax
Parameter Set: Default
New-OBSchedule [[-DaysOfWeek] <DayOfWeek[]{Sunday | Monday | Tuesday | Wednesday | Thursday | Friday | Saturday}> ] [[-TimesOfDay] <TimeSpan[]> ] [ <CommonParameters>]
Detailed 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.
Parameters
-DaysOfWeek<DayOfWeek[]{Sunday | Monday | Tuesday | Wednesday | Thursday | Friday | Saturday}>
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”.
Aliases |
none |
Required? |
false |
Position? |
2 |
Default Value |
none |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
-TimesOfDay<TimeSpan[]>
Specifies the times of the day during which backup should run.
Aliases |
none |
Required? |
false |
Position? |
3 |
Default Value |
none |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
<CommonParameters>
This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).
Inputs
The input type is the type of the objects that you can pipe to the cmdlet.
- None
Outputs
The output type is the type of the objects that the cmdlet emits.
- Microsoft.Internal.CloudBackup.Commands.OBSchedule
Examples
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