New-VBRBackupToTapeScheduleOptions
Short Description
Creates schedule settings for backup to tape job.
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] [<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 | Type | Required | Position | Accept |
---|---|---|---|---|---|
Type | Specifies the job schedule type:
Default: Daily. | False | Named | False | |
DailyOptions | Used to set days for the Type parameter (Daily option). Default:
| Accepts the VBRDailyOptions object. To create this object, run the New-VBRDailyOptions cmdlet. | False | Named | False |
MonthlyOptions | Used to set months for the Type parameter (Monthly option). Default:
| Accepts the VBRMonthlyOptions object. To create this object, run the New-VBRMonthlyOptions cmdlet. | False | Named | False |
BackupWindowOptions | Specifies backup windows: the tape job will run within the specified time interval. Default:
| Accepts the VBRBackupWindowOptions object. To create this object, run the New-VBRBackupWindowOptions cmdlet. | False | Named | False |
Job | Specifies the source backup job after which the tape job must run. | Accepts the CBackupJob or the VBRJob objects. To get this object, run the Get-VBRJob cmdlet. | False | Named | False |
Enabled | Defines if this schedule is enabled. Default: False. | SwitchParameter | False | Named | False |
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see Microsoft Docs.
Output Object
VBRBackupToTapeScheduleOptions
Examples
Creating Tape Job Schedule
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.
$dailyoptions = New-VBRDailyOptions -DayOfWeek Friday -Period 23:00 $scheduleoptions = New-VBRBackupToTapeScheduleOptions -DailyOptions $dailyoptions -Enabled |
Perform the following steps:
- Run the New-VBRDailyOptions cmdlet. Set Friday as the DayOfWeek parameter value and 23:00 as the Period parameter value. Save the result to the $dailyoptions variable.
- Run the New-VBRBackupToTapeScheduleOptions cmdlet. Set the $dailyoptions variable as the DailyOptions parameter value. Provide the Enabled parameter. Save the schedule to the $scheduleoptions variable for future use.
Related Commands