New-VBRApplicationBackupRepositoryScheduleOptions
Short Description
Creates a snapshot creation schedule for application backup repositories.
Product Edition: Community, Standard, Enterprise, Enterprise Plus, Veeam Universal License
Syntax
|
New-VBRApplicationBackupRepositoryScheduleOptions [-ScheduleEnabled <Boolean>] -Type <VBRServerScheduleType> [-DailyOptions <VBRDailyOptions>] [-MonthlyOptions <VBRMonthlyOptions>] [-PeriodicallyOptions <VBRPeriodicallyOptions>] [<CommonParameters>] |
Detailed Description
This cmdlet creates a schedule according to which the application backup repository creates snapshots of the repository volume.
Parameters
|
Parameter |
Description |
Type |
Required |
Position |
Accept Pipeline Input |
|---|---|---|---|---|---|
|
DailyOptions |
For daily schedule. Specifies daily schedule settings. The cmdlet will create the snapshot schedule with these settings.
Accepts the |
False |
Named |
False |
|
|
MonthlyOptions |
For monthly schedule. Specifies monthly schedule settings. The cmdlet will create the snapshot schedule with these settings.
Accepts the |
False |
Named |
False |
|
|
PeriodicallyOptions |
For periodical schedule. Specifies periodical schedule settings. The cmdlet will create the snapshot schedule with these settings.
Accepts the |
False |
Named |
False |
|
|
ScheduleEnabled |
Determines whether the snapshot creation schedule is enabled or not. |
|
False |
Named |
False |
|
Type |
Specifies the type of the schedule:
The cmdlet will create the snapshot schedule of this type. |
|
True |
Named |
False |
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see Microsoft Docs.
Output Object
This cmdlet returns the VBRApplicationBackupRepositoryScheduleOptions object that contains the snapshot schedule for a application backup repository.
Examples
Creating Snapshot Schedule for Application Backup Repository
This example shows how to create a new snapshot creation schedule which runs every Friday at 23:00.
|
$daily = New-VBRDailyOptions -DayOfWeek Friday -Period 23:00 $schedule = New-VBRApplicationBackupRepositoryScheduleOptions -ScheduleEnabled $true -Type Daily -DailyOptions $daily |
Perform the following steps:
- Run the
New-VBRDailyOptionscmdlet. Specify theDayofWeekandPeriodparameter values. Save the result to the$dailyvariable. - Run the
New-VBRApplicationBackupRepositoryScheduleOptionscmdlet. Specify the following settings:- Set the
ScheduleEnabledparameter value to$true. - Specify the
Typeparameter value. - Set the
$dailyvariable as theDailyOptionsparameter value. - Save the result to the
$schedulevariable to be used with other cmdlets.
- Set the
Related Commands
New-VBRDailyOptionsCreates new job daily schedule settings.New-VBRMonthlyOptionsCreates a new VBRMonthlyOptions object.New-VBRPeriodicallyOptionsCreates periodical schedule settings.