Set-VBRJobSchedule
Short Description
Modifies job schedule.
Platform: VMware, Hyper-V
Product Edition: Standard, Enterprise, Enterprise Plus, Veeam Universal License
Syntax
This cmdlet provides the following parameter sets:
-
DailySet-VBRJobSchedule -Job <CBackupJob> [-Daily] [-At <DateTime>] [-DailyKind <DailyKinds>] [-Days <DayOfWeek[]>]
[-EnableBackupTerminationWindow] [-TerminationWindow <VBRBackupWindowOptions>] [<CommonParameters>]
-
MonthlySet-VBRJobSchedule -Job <CBackupJob> [-At <DateTime>] [-Days <DayOfWeek[]>] [-Monthly]
[-NumberInMonth <EDayNumberInMonth>] [-Months <EMonth[]>] [-DayOfMonth <String>]
[-EnableBackupTerminationWindow] [-TerminationWindow <VBRBackupWindowOptions>] [<CommonParameters>]
-
PeriodicalySet-VBRJobSchedule -Job <CBackupJob> [-Periodicaly] [-FullPeriod <Int32>]
[-PeriodicallyKind <VBRPeriodicallyKinds>] [-PeriodicallySchedule <VBRBackupWindowOptions>]
[-PeriodicallyOffset <Int32>] [-EnableBackupTerminationWindow] [-TerminationWindow <VBRBackupWindowOptions>] [<CommonParameters>]
-
AfterSet-VBRJobSchedule -Job <CBackupJob> [-After] [-AfterJob <CBackupJob>] [-EnableBackupTerminationWindow]
[-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 |
Parameters
|
Parameter |
Description |
Type |
Required |
Position |
Accept Pipeline Input |
|---|---|---|---|---|---|
|
After |
For running after a job. Defines that the job will start after another job.
Use the |
|
False |
Named |
False |
|
AfterJob |
For running after a job. Specifies the job after which you want to run this job.
Accepts the |
|
False |
Named |
False |
|
At |
For monthly schedule. Specifies the job start time.
Default: |
|
False |
Named |
False |
|
Daily |
For daily schedule. Defines that the job runs daily. |
|
False |
Named |
False |
|
DailyKind |
For daily schedule. Specifies the days to run the job:
|
|
False |
Named |
False |
|
DayOfMonth |
For monthly schedule with the Specifies the day in month: 1–31, Last. |
|
False |
Named |
False |
|
Days |
For monthly schedule.
Specifies the day of week for the |
|
False |
Named |
False |
|
EnableBackupTerminationWindow |
Defines that the Veeam Backup & Replication will stop the Veeam Agent backup job if it exceeds the backup window. |
|
False |
Named |
False |
|
FullPeriod |
For periodical run.
Specifies the number of hours or minutes for the |
|
False |
Named |
False |
|
Job |
Specifies the job you want to edit.
Accepts the |
|
True |
Named |
True (ByPropertyName, ByValue) |
|
Monthly |
For monthly schedule. Defines that the job runs once a month. |
|
False |
Named |
False |
|
Months |
For monthly schedule. Specifies the months when the job will run:
|
|
False |
Named |
False |
|
NumberInMonth |
For monthly schedule. Specifies the number of day in month (for example, Saturday):
|
|
False |
Named |
False |
|
PeriodicallyKind |
For periodical run. Specifies the periodically schedule type:
|
|
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). |
|
False |
Named |
False |
|
PeriodicallySchedule |
For periodical run. Specifies the backup window.
Accepts the |
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
Use the |
|
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 |
<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
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
Perform the following steps:
|
Example 4. Scheduling Job to Run After Another Job
|
This example shows how to schedule the
Perform the following steps:
|
Related Commands
Get-VBRJobReturns existing jobs.Get-VSBJobReturns SureBackup jobs. This cmdlet is obsolete. Run the Get-VBRSureBackupJob cmdlet instead.