New-OBSchedule
Updated: April 4, 2013
Applies To: Windows Server 2012
New-OBSchedule
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.
To use Windows Azure Backup cmdlets, the user must be a member of the Administrators group or Backup Operators group.
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.
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
Related topics
