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
Pipeline
Input

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,
ByProperty
Name)

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:

  • Everyday: the job will run everyday
  • WeekDays: the job will run Monday through Friday
  • SelectedDays: the job will run on specific days (for example, on Saturdays). Use the Days parameter to set the specific days

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):

  • First: the SureBackup job runs on the first (Saturday) of the selected months.
  • Second: the SureBackup job runs on the second (Saturday) of the selected months.
  • Third: the SureBackup job runs on the third (Saturday) of the selected months.
  • Fourth: the SureBackup job runs on the fourth (Saturday) of the selected months.
  • Last: the SureBackup job runs on the last (Saturday) of the selected months.

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

Set-VSBJobSchedule (obsolete)Example 1. Scheduling SureBackup Jobs to Run Daily

Set-VSBJobSchedule (obsolete)Example 2. Scheduling SureBackup Jobs to Run Last Saturday of Specific Months

Set-VSBJobSchedule (obsolete)Example 3. Scheduling SureBackup Jobs to Run After Specific Job

Related Commands

Page updated 6/3/2024

Page content applies to build 12.3.1.1139