New-VBRBackupToTapeScheduleOptions
Short Description
Creates a new VBRBackupToTapeScheduleOptions object.
Applies to
Platform: VMware, Hyper-V
Product Edition: Standard, Enterprise, Enterprise Plus, Veeam Universal License
Syntax
New-VBRBackupToTapeScheduleOptions [-Type <VBRBackupToTapePolicyType>] [-DailyOptions <VBRDailyOptions>] [-MonthlyOptions <VBRMonthlyOptions>] [-BackupWindowOptions <VBRBackupWindowOptions>] [-Job <VBRJob>] [-Enabled][-WarningAction <ActionPreference>] [-WarningVariable <String>] [<CommonParameters>] |
Detailed Description
This cmdlet creates the VBRBackupToTapeScheduleOptions object. This object contains schedule settings for backup to tape job and is used further to apply these settings to an existing backup to tape job.
Parameters
Parameter | Description | Required | Position | Accept | Accept |
---|---|---|---|---|---|
Type | Specifies the job schedule type:
Default: Daily. | False | Named | False | False |
DailyOptions | Used to set days for the Type parameter (Daily option). Default:
Accepts VBRDailyOptions type. | False | Named | False | False |
MonthlyOptions | Used to set months for the Type parameter (Monthly option). Default:
Accepts VBRMonthlyOptions type. | False | Named | False | False |
BackupWindowOptions | Specifies backup windows: the tape job will run within the specified time interval. Default:
Accepts VBRBackupWindowOptions type. | False | Named | False | False |
Job | Specifies the source backup job after which the tape job must run. Accepts VBRJob or CBackupJob type. Default: Null. | False | Named | False | False |
Enabled | Indicates if this schedule is enabled. Default: False. | False | Named | False | False |
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see the About CommonParameters section of Microsoft Docs.
Return Type
VBRBackupToTapeScheduleOptions
Example
This example shows how to create a tape job schedule with the following settings:
- The job runs every Friday.
- The job starts at 23:00.
To create a job schedule:
- Run New-VBRDailyOptions to set the day and time. Save the result to the $dailyoptions variable.
- Run New-VBRBackupToTapeScheduleOptions with the saved variable. Save the schedule to the $scheduleoptions variable for future use.
$dailyoptions = New-VBRDailyOptions -DayOfWeek Friday -Period 23:00 $scheduleoptions = New-VBRBackupToTapeScheduleOptions -DailyOptions $dailyoptions -Enabled |
Related Commands