New-VBRUnixScheduleOptions

In this article

    Short Description

    Defines the schedule for Unix jobs.

    Applies to

    Product Edition: Standard, Enterprise, Enterprise Plus, Veeam Universal License

    Syntax

    New-VBRUnixScheduleOptions -Type <VBRServerScheduleType> [-DailyOptions <VBRDailyOptions>] [-MonthlyOptions <VBRMonthlyOptions>] [-PeriodicallyOptions <VBRPeriodicallyOptions>] [-EnableRetry <SwitchParameter>] [-RetryCount <Int32>] [-RetryTimeout <Int32>] [<CommonParameters>]

    Detailed Description

    This cmdlet modifies schedule for Unix jobs, created with Veeam Agent for Oracle Solaris or Veeam Agent for IBM AIX.

    Parameters

    Parameter

    Description

    Type

    Required

    Position

    Accept Pipeline Input

    Type

    Specifies the Unix schedule type.

    • Daily: use this option to run the job at a specific time daily.
    • Monthly: use this option to run the job once a month on specific days.
    • Periodically: use this option to run the job repeatedly throughout a day with a specific time interval.
    • AfterJob: use this option to create a chain of jobs. Veeam Backup & Replication will start the Unix job after the other backup job.
      Note: The AfterJob option does not work for backup policy.

    VBRServerScheduleType

    True

    Named

    False

    DailyOptions

    For daily schedule.

    Specifies daily schedule settings. The cmdlet will create the server schedule with these settings.

    Accepts the VBRDailyOptions object. To get this object, run the Get-VBRDailyOptions cmdlet.

    False

    Named

    False

    MonthlyOptions

    For monthly schedule.

    Specifies monthly schedule settings. The cmdlet will create the server schedule with these settings.

    Accepts the MonthlyOptions object. To get this object, run the New-VBRMonthlyOptions cmdlet.

    False

    Named

    False

    PeriodicallyOptions

    For periodical run.

    Specifies periodical schedule settings. The cmdlet will create the server schedule with these settings.

    Accepts the PeriodicallyOptions object. To get this object, run the New-VBRPeriodicallyOptions cmdlet.

    False

    Named

    False

    EnableRetry

    Indicates that Veeam Backup & Replication will attempt to run a Unix job again in case it fails.

    SwitchParameter

    False

    Named

    False

    RetryCount

    For the EnableRetry parameter.

    Specifies the number of attempts to run the failed Unix backup job.

    Default: 3.

    Int32

    False

    Named

    False

    RetryTimeout

    For the EnableRetry parameter.

    Specifies the time interval between retry attempts in minutes.

    Default: 30.

    Int32

    False

    Named

    False

    <CommonParameters>

    This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see the About CommonParameters section of Microsoft Docs.

    Output Object

    The cmdlet returns the VBRUnixScheduleOptions object that defines schedule for Unix jobs.

    Examples

    Defining Schedule for Unix Jobs

    This example shows how to define schedule for Unix jobs. The job will run on Fridays at 7:00 PM.

    1. Run New-VBRDailyOptions to specify the daily schedule options. Save the result to the $daily variable.
    2. Run New-VBRMacScheduleOptions with the $daily variable. Use the Type parameter to specify the type of the schedule.

    $daily = New-VBRDailyOptions -DayOfWeek Friday -Period 7:00

    $unixschedule = New-VBRUnixScheduleOptions -Type Daily -DailyOptions $daily

    Related Commands

    New-VBRDailyOptions