Set-VBRJobSchedule
Short Description
Modifies job schedule.
Applies to
Platform: VMware, Hyper-V
Product Edition: Standard, Enterprise, Enterprise Plus, Veeam Universal License
Syntax
This cmdlet provides parameter sets that allow you to:
- Schedule a job to run daily on specific time, on specific days of week.
Set-VBRJobSchedule [-At <datetime>] [-Daily] [-DailyKind {Everyday | WeekDays | SelectedDays}] [-Days {Sunday | Monday | Tuesday | Wednesday | Thursday | Friday | Saturday}] [-EnableBackupTerminationWindow] -Job <CBackupJob> [-TerminationWindow <VBRBackupWindowOptions>] [<CommonParameters>] |
- Schedule a job to run monthly on specific time, on specific days of month, on specific months.
Set-VBRJobSchedule [-At <datetime>] [-DayOfMonth <string>] [-Days {Sunday | Monday | Tuesday | Wednesday | Thursday | Friday | Saturday}] [-EnableBackupTerminationWindow] -Job <CBackupJob> [-Monthly] [-Months {January | February | March | April | May | June | July | August | September | October | November | December}] [-NumberInMonth {First | Second | Third | Fourth | Last | OnDay}] [-TerminationWindow <VBRBackupWindowOptions>] [<CommonParameters>] |
- Schedule a job to run periodically within specified period of time or continuously.
Set-VBRJobSchedule [-EnableBackupTerminationWindow] [-FullPeriod <Int32>] -Job <CBackupJob> [-PeriodicallyKind {Hours | Minutes | Continuously}] [-PeriodicallyOffset <int32>] [-PeriodicallySchedule <VBRBackupWindowOptions>] [-Periodicaly] [-TerminationWindow <VBRBackupWindowOptions>] [<CommonParameters>] |
- Schedule a job to run after a certain job you specify.
Set-VBRJobSchedule [-After] [-AfterJob <CBackupJob>] [-EnableBackupTerminationWindow] -Job <CBackupJob> [-TerminationWindow <VBRBackupWindowOptions>] [<CommonParameters>] |
Detailed Description
This cmdlet modifies schedule settings of a selected job.
Note |
To modify settings, specify new values for the necessary parameters. The cmdlet will overwrite the previous parameters values with new values. The parameters that you omit will remain unchanged. |
Important |
The Periodicaly parameter has a typo in spelling. In scripts, enter parameters as specified in command syntax. |
Parameters
Parameter | Description | Type | Required | Position | Accept |
---|---|---|---|---|---|
Job | Specifies the job you want to edit. | Accepts the CBackupJob object. To create this object, run the Get-VBRJob cmdlet. | True | Named | True (ByProperty |
Daily | For daily schedule. Defines that the job runs daily. | SwitchParameter | False | Named | False |
At | For daily schedule. Specifies the job start time. Default: 10:00. | DateTime | False | Named | False |
DailyKind | For daily schedule. Specifies the days to run the job:
| DailyKinds | False | Named | False |
Days | For daily schedule. Specifies the days of week when the job will run. | DayOfWeek[] | False | Named | False |
EnableBackupTerminationWindow | Defines that the Veeam Backup & Replication will stop the Veeam Agent backup job if it exceeds the backup window. | SwitchParameter | 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 VBRBackupWindowOptions object. To create this object, run the New-VBRBackupWindowOptions cmdlet. | False | Named | False |
Monthly | For monthly schedule. Defines that the job runs once a month. | SwitchParameter | False | Named | False |
At | For monthly schedule. Specifies the job start time. Default: 10:00. | DateTime | False | Named | False |
NumberInMonth | For monthly schedule. Specifies the number of day in month (for example, Saturday):
| EDayNumberInMonth | False | Named | False |
DayOfMonth | For monthly schedule with the OnDay option. Specifies the day in month: 1-31, Last. | String | False | Named | False |
Days | For monthly schedule. Specifies the day of week for the NumberInMonth parameter. | DayOfWeek[] | False | Named | False |
Months | For monthly schedule. Specifies the months when the job will run:
| EMonth[] | False | Named | False |
Periodicaly | Note: This parameter has a typo in spelling. In scripts, enter parameters as specified in command syntax. For periodical run. Defines that the job runs periodically (for example, every 6 hours). Use the FullPeriod and PeriodicallyKind parameters to set the periodical schedule. Use the PeriodicallySchedule parameter to set backup window. | SwitchParameter | False | Named | False |
FullPeriod | For periodical run. Specifies the number of hours or minutes for the PeriodicallyKind parameter. | Int32 | False | Named | False |
PeriodicallyKind | For periodical run. Specifies the periodically schedule type:
| VBRPeriodicallyKinds | False | Named | False |
PeriodicallySchedule | For periodical run. Specifies the backup window. | Accepts the VBRBackupWindowOptions object. To create this object, run the New-VBRBackupWindowOptions cmdlet. | False | Named | False |
PeriodicallyOffset | For periodical run. Used to set the exact time when the backup window starts. Specifies the number of minutes (1-59). The job will start at the hour set in the backup window plus the indicated period (for example, at 8:30). | Int32 | False | Named | False |
After | For running after a job. Defines that the job will start after another job. Use the AfterJob parameter to set the primary job. | SwitchParameter | False | Named | False |
AfterJob | For running after a job. Specifies the job after which you want to run this job. | Accepts the CBackupJob object. To create this object, run the Get-VBRJob cmdlet. | False | Named | False |
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see Microsoft Docs.
Examples
Example 1. Scheduling Daily Backup Job
This example shows how to schedule the Backup Job 01 job to run daily at 23:00 on weekdays.
Perform the following steps:
|
Example 2. Scheduling Monthly Replication Jobs
This example shows how to schedule all replication jobs to run monthly every last Saturday at 12:00 in February, May, August and December.
Perform the following steps:
|
Example 3. Scheduling Job to Run Every Several Hours
This example shows how to schedule the Daily Job to run every 12 hours.
Perform the following steps:
|
Example 4. Scheduling Job to Run After Another Job
This example shows how to schedule the Daily Job to run after the Database Job.
Perform the following steps:
|
Related Commands