Set-VSBJobSchedule (obsolete)
Short Description
Modifies SureBackup job schedule options.
|
Note |
|
This cmdlet is obsolete. The cmdlet will still work but may not be supported in further versions. |
Applies to
Platform: VMware, Hyper-V
Product Edition: Enterprise, Enterprise Plus, Veeam Universal License
Syntax
|
Set-VSBJobSchedule -Job <CSbJob> [-Daily] [-At <DateTime>] [-DailyKind <DailyOptions+DailyKinds>] [-Days <DayOfWeek[]>] [-WarningAction <ActionPreference>] [-WarningVariable <String>] [<CommonParameters>] -OR- Set-VSBJobSchedule -Job <CSbJob> [-At <DateTime>] [-Days <DayOfWeek[]>] [-Monthly] [-NumberInMonth <EDayNumberInMonth>] [-Months <EMonth[]>] [-WarningAction <ActionPreference>] [-WarningVariable <String>] [<CommonParameters>] -OR- Set-VSBJobSchedule -Job <CSbJob> [-After] [-AfterJob <CBackupJob>] [-WarningAction <ActionPreference>] [-WarningVariable <String>] [<CommonParameters>] |
Detailed Description
This cmdlet modifies schedule settings of a SureBackup job.
You can schedule the job to run:
- Daily on specific time, on specific days of week.
- Monthly on specific time, on specific days of month, on specific months.
- After a certain job you specify.
Parameters
|
Parameter |
Description |
Type |
Required |
Position |
Accept |
|---|---|---|---|---|---|
|
Job |
Specifies the SureBackup job. The cmdlet will modify settings of this job. |
Accepts the CSbJob object. To get this object, run the Get-VSBJob cmdlet. |
True |
Named |
True (ByValue, |
|
Daily |
For daily schedule. Defines that the SureBackup job runs daily. Use At and DailyKind parameters to specify the daily schedule. |
SwitchParameter |
False |
Named |
False |
|
At |
For daily schedule. Specifies the SureBackup job start time. Default: 10:00. |
DateTime |
False |
Named |
False |
|
DailyKind |
For daily schedule. Specifies the days when the SureBackup job runs:
|
DailyOptions+DailyKinds |
False |
Named |
False |
|
Days |
For daily schedule. Specifies the days of week when the SureBackup job runs. |
DayOfWeek[] |
False |
Named |
False |
|
At |
For monthly schedule. Specifies the SureBackup job start time. Default: 10:00. |
DateTime |
False |
Named |
False |
|
Days |
For monthly schedule. Specifies the day of week when the SureBackup job runs. Use this parameter to set the day for NumberInMonth parameter, for example, on first Saturday every month. |
DayOfWeek[] |
False |
Named |
False |
|
NumberInMonth |
For monthly schedule. Specifies the number of day in month (for example, Saturday):
|
EDayNumberInMonth |
False |
Named |
False |
|
Monthly |
For monthly schedule. Defines that the SureBackup job runs once a month. Use Months, NumberInMonth and Days parameters to set the monthly schedule. |
SwitchParameter |
False |
Named |
False |
|
Months |
For monthly schedule. Specifies the months when the SureBackup job runs. |
EMonth[] |
False |
Named |
False |
|
After |
After this job. Defines that the SureBackup job runs after a selected job. Use the AfterJob parameter to specify the primary job. |
SwitchParameter |
False |
Named |
False |
|
AfterJob |
After this job. Specifies the job after which the SureBackup job runs. |
Accepts the CBackupJob object. To get 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 SureBackup Jobs to Run Daily
|
This example shows how to schedule the SureBackup Job 01 and SureBackup Job 05 jobs to run daily at 23:00 on weekdays.
Perform the following steps:
|
Example 2. Scheduling SureBackup Jobs to Run Last Saturday of Specific Months
|
This example shows how to schedule the SureBackup Job 01 and SureBackup Job 05 jobs to run daily at 23:00 on weekdays.
Perform the following steps:
|
Example 3. Scheduling SureBackup Jobs to Run After Specific Job
|
This example shows how to schedule the SureBackup Job 01 job to run after the job.
Perform the following steps:
|
Related Commands