Set-VBRMacScheduleOptions
Short Description
Modifies schedule for macOS jobs.
Product Edition: Standard, Enterprise, Enterprise Plus, Veeam Universal License
Syntax
|
Set-VBRMacScheduleOptions -Options <VBRMacScheduleOptions> [-Type <VBRServerScheduleType>] [-DailyOptions <VBRDailyOptions>] [-MonthlyOptions <VBRMonthlyOptions>] [-PeriodicallyOptions <VBRPeriodicallyOptions>] [-EnableRetry] [-RetryCount <Int32>] [-RetryTimeout <Int32>] [-EnableBackupTerminationWindow] [-TerminationWindow <VBRBackupWindowOptions>] [<CommonParameters>] |
Detailed Description
This cmdlet modifies schedule for macOS jobs, created with Veeam Agent for Oracle Solaris or Veeam Agent for IBM AIX.
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 a macOS job again in case it fails. |
|
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 schedule settings for macOS jobs 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 macOS backup job.
Default: |
|
False |
Named |
False |
|
RetryTimeout |
For the Specifies the time interval between retry attempts in minutes.
Default: |
|
False |
Named |
False |
|
TerminationWindow |
Specifies the time interval within which the backup job must complete.
Accepts the |
False |
Named |
False |
|
|
Type |
Specifies the macOS schedule type.
|
|
False |
Named |
False |
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see Microsoft Docs.
Output Object
The cmdlet returns the VBRMacScheduleOptions object that defines schedule for macOS jobs.
Examples
Defining Schedule for MacOS Jobs
This example shows how to modify schedule for macOS jobs. The job schedule will be set to run on Wednesday instead of Fridays. The example also restricts the job to a backup window from 20:00 to 22:59, Monday to Friday.
|
$daily = New-VBRDailyOptions -DayOfWeek Friday -Period 7:00 $macschedule = New-VBRMacScheduleOptions -Type Daily -DailyOptions $daily $newdaily = New-VBRDailyOptions -DayOfWeek Wednesday -Period 7:00 $window = New-VBRBackupWindowOptions -FromDay Monday -ToDay Friday -FromHour 20 -ToHour 22 -Enabled Set-VBRMacScheduleOptions -Options $macschedule -DailyOptions $newdaily -EnableBackupTerminationWindow -TerminationWindow $window |
Perform the following steps:
- Run the
New-VBRDailyOptionsCreates new job daily schedule settings. cmdlet. Specify theDayOfWeekandPeriodparameter values. Save the result to the$dailyvariable. - Run the
New-VBRMacScheduleOptionsDefines the schedule for macOS jobs. cmdlet. Set theDailyoption for theTypeparameter. Set the$dailyvariable as theDailyOptionsparameter value. Save the result to the$macschedulevariable. - Run the
New-VBRDailyOptionsCreates new job daily schedule settings. cmdlet. Specify theDayOfWeekandPeriodparameter values. Save the result to the$newdailyvariable. - Run the
New-VBRBackupWindowOptionsDefines backup window settings for a job. cmdlet. Specify theFromDay,ToDay,FromHourandToHourparameter values. Provide theEnabledparameter. Save the result to the$windowvariable. - Run the
Set-VBRMacScheduleOptionscmdlet. Set the$macschedulevariable as theOptionsparameter value. Set the$newdailyvariable as theDailyOptionsparameter value. Provide theEnableBackupTerminationWindowparameter. Set the$windowvariable as theTerminationWindowparameter value.
Related Commands
New-VBRBackupWindowOptionsDefines backup window settings for a job.New-VBRDailyOptionsCreates new job daily schedule settings.New-VBRMacScheduleOptionsDefines the schedule for macOS jobs.