Set-VBRSureBackupJobScheduleOptions
Short Description
Modifies settings of a SureBackup job schedule.
Product Edition: Standard, Enterprise, Enterprise Plus, Veeam Universal License
Syntax
|
Set-VBRSureBackupJobScheduleOptions -VBRSbJobScheduleOptions <VBRSureBackupJobScheduleOptions> [-Type <VBRSbJobScheduleType>] [-DailyOptions <VBRDailyOptions>] [-MonthlyOptions <VBRMonthlyOptions>] [-ParentJob <CBackupJob>] [-WaitForParentJob] [-WaitTimeMinutes <Int32>] [<CommonParameters>] |
Detailed Description
This cmdlet modifies settings of a SureBackup job schedule.
Note |
|
To modify settings, specify new values for the necessary parameters. The cmdlet will overwrite the previous parameter values with new values. The parameters that you omit will remain unchanged. |
Parameters
|
Parameter |
Description |
Type |
Required |
Position |
Accept Pipeline Input |
|---|---|---|---|---|---|
|
DailyOptions |
For a daily schedule. Specifies a daily schedule for a SureBackup job. The cmdlet will create the SureBackup job with this schedule.
Accepts the |
False |
Named |
False |
|
|
MonthlyOptions |
For a monthly schedule. Specifies a monthly schedule for a SureBackup job. The cmdlet will create the SureBackup job with this schedule.
Accepts the |
False |
Named |
False |
|
|
ParentJob |
For running after a job. Specifies a name of the job after which Veeam Backup & Replication the SureBackup job must run. The cmdlet will create the SureBackup job with this schedule.
Accepts the |
|
False |
Named |
False |
|
Type |
Specifies how often a SureBackup job must run. You can select one of the following options:
|
|
False |
Named |
False |
|
VBRSbJobScheduleOptions |
Specifies the SureBackup job schedule. The cmdlet will modify this schedule.
Accepts the |
|
True |
Named |
False |
|
WaitForParentJob |
Defines that the SureBackup job will wait until the linked backup or replication job completes. If you provide this parameter, Veeam Backup & Replication will wait until the linked job completes. Otherwise, it will start the SureBackup job without waiting for the linked job to complete.
Use the |
|
False |
Named |
False |
|
WaitTimeMinutes |
Specifies the time period in minutes that the SureBackup job must wait for the linked job to complete. |
|
False |
Named |
False |
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see Microsoft Docs.
Output Object
The cmdlet returns the VBRSureBackupJobScheduleOptions object that defines SureBackup job schedule.
Examples
Modifying Daily SureBackup Job Schedule
This example shows how to modify the daily SureBackup job schedule. The schedule is modified to run the SureBackup job every Saturday at 23:00.
|
$daily = New-VBRDailyOptions -DayOfWeek Friday -Period 23:00 $schedule = New-VBRSureBackupJobScheduleOptions -Type Daily -DailyOptions $daily $dailynew = New-VBRDailyOptions -DayOfWeek Saturday -Period 23:00 Set-VBRSureBackupJobScheduleOptions -VBRSbJobScheduleOptions $schedule -Type Daily -DailyOptions $dailynew |
Perform the following steps:
- Run the
New-VBRDailyOptionsCreates new job daily schedule settings. cmdlet. Specify theDayOfWeekparameter value. Specify thePeriodparameter value. Save the result to the$dailyvariable. - Run the
New-VBRSureBackupJobScheduleOptionsDefines a SureBackup job schedule. cmdlet. Set theDailyoption for theTypeparameter value. Set the$dailyvariable as theDailyOptionsparameter value. Save the result to the$schedulevariable. - Run the
New-VBRDailyOptionsCreates new job daily schedule settings. cmdlet. Specify theDayOfWeekparameter value. Specify thePeriodparameter value. Save the result to the$dailynewvariable. - Run the
Set-VBRSureBackupJobScheduleOptionscmdlet. Specify the following settings:- Set the
$schedulevariable as theVBRSbJobScheduleOptionsparameter value. - Set the
Dailyoptions for theTypeparameter value. - Set the
$dailynewvariable as theDailyOptionsparameter value.
- Set the
Related Commands
New-VBRDailyOptionsCreates new job daily schedule settings.New-VBRSureBackupJobScheduleOptionsDefines a SureBackup job schedule.