Set-VBRServerScheduleOptions
Short Description
Modifies the schedule for Veeam Agent backup jobs.
Product Edition: Community, Standard, Enterprise, Enterprise Plus, Veeam Universal License
Syntax
|
Set-VBRServerScheduleOptions -Options <VBRServerScheduleOptions> [-Type <VBRServerScheduleType>] [-DailyOptions <VBRDailyOptions>] [-MonthlyOptions <VBRMonthlyOptions>] [-PeriodicallyOptions <VBRPeriodicallyOptions>] [-Job <CBackupJob>] [-EnableRetry] [-RetryCount <Int32>] [-RetryTimeout <Int32>] [-EnableBackupTerminationWindow] [-TerminationWindow <VBRBackupWindowOptions>] [<CommonParameters>] |
Detailed Description
This cmdlet modifies schedule settings for the following types of jobs:
- Veeam Agent jobs that back up Linux servers.
- Veeam Agent jobs that back up failover clusters.
- Veeam Agent jobs that back up Windows servers.
- The backup policy that Veeam Agent job applies to Windows servers.
Important |
|
Consider the following:
|
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 daily schedule. Specifies daily schedule settings. The cmdlet will create the server schedule with these settings.
Accepts the |
False |
Named |
False |
|
|
EnableBackupTerminationWindow |
Enables the option to stop the Veeam Agent backup job if it exceeds the backup window. |
|
False |
Named |
False |
|
EnableRetry |
Enables the option to run the Veeam Agent backup job again in case it fails. |
|
False |
Named |
False |
|
Job |
For running after a job. Specifies the name of the backup job after which Veeam Backup & Replication will run Veeam Agent backup jobs. The cmdlet will create the server schedule with these settings.
Accepts the |
|
False |
Named |
False |
|
MonthlyOptions |
For monthly schedule. Specifies monthly schedule settings. The cmdlet will create the server schedule with these settings.
Accepts the |
False |
Named |
False |
|
|
Options |
Specifies the server schedule settings that you want to modify.
Accepts the |
|
True |
Named |
True (ByValue) |
|
PeriodicallyOptions |
For periodical run. Specifies periodical schedule settings. The cmdlet will create the server schedule with these settings.
Accepts the |
False |
Named |
False |
|
|
RetryCount |
For the Specifies the number of attempts to run the failed Veeam Agent backup job. |
|
False |
Named |
False |
|
RetryTimeout |
For the Specifies the time interval between retry attempts in minutes. |
|
False |
Named |
False |
|
TerminationWindow |
Specifies the time interval within which the backup job must complete. The cmdlet will create the Veeam Agent backup job with these settings.
Accepts the |
False |
Named |
False |
|
|
Type |
Specifies the Veeam Agent backup job schedule type.
|
|
False |
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 VBRServerScheduleOptions object that contains schedule settings for backup jobs.
Examples
Modifying Schedule for Veeam Agent Backup Job
This example shows how to modify an existing schedule for a Veeam Agent backup job.
|
$job = Get-VBRComputerBackupJob -Name "BackupJob" $options = New-VBRServerScheduleOptions -Type Daily -DailyOptions $daily $period = New-VBRPeriodicallyOptions -FullPeriod 12 -PeriodicallyKind Hours $termination = New-VBRBackupWindowOptions -FromDay Friday -FromHour 17 -ToDay Monday -ToHour 8 Set-VBRServerScheduleOptions -Options $options -Type Periodically -PeriodicallyOptions $period -EnableBackupTerminationWindow -TerminationWindow $termination |
Perform the following steps:
- Run the
Get-VBRComputerBackupJobReturns Veeam Agent backup jobs and Veeam Agent backup policies. cmdlet. Specify theNameparameter value. Save the result to the$jobvariable. - Run the
New-VBRServerScheduleOptionsCreates the schedule for jobs. cmdlet. Set theDailyvalue as theTypeparameter value. Set the$dailyvariable as theDailyOptionsparameter value. Save the result to the$optionsvariable. - Run the
New-VBRPeriodicallyOptionsCreates periodical schedule settings. cmdlet. Specify theFullPeriodandPeriodicallyKindparameter values. Save the result to the$periodvariable. - Run the
New-VBRBackupWindowOptionscmdlet. Specify theFromDay,FromHour,ToDayandToHourparameter values. Save the result to the$terminationvariable. - Run the
Set-VBRServerScheduleOptionscmdlet. Specify the following settings:- Set the
$optionsvariable as theOptionsparameter value. - Set the
Periodicallyoption for theTypeparameter. - Set the
$periodvariable as thePeriodicallyOptionsparameter value. - Provide the
EnableBackupTerminationWindowparameter. - Set the
$terminationvariable as theTerminationWindowparameter value.
- Set the
Related Commands
Get-VBRComputerBackupJobReturns Veeam Agent backup jobs and Veeam Agent backup policies.New-VBRServerScheduleOptionsCreates the schedule for jobs.New-VBRPeriodicallyOptionsCreates periodical schedule settings.New-VBRBackupWindowOptions