New-VBRBackupToTapeScheduleOptions
Short Description
Creates schedule settings for backup to tape job.
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 Pipeline Input |
|---|---|---|---|---|---|
|
BackupWindowOptions |
Specifies backup windows: the tape job will run within the specified time interval. Default:
Accepts the |
False |
Named |
False |
|
|
DailyOptions |
Used to set days for the Default:
Accepts the |
False |
Named |
False |
|
|
Enabled |
Defines if this schedule is enabled.
Default: |
|
False |
Named |
False |
|
Job |
Specifies the source backup job after which the tape job must run.
Accepts the |
False |
Named |
False |
|
|
MonthlyOptions |
Used to set months for the Default:
Accepts the |
False |
Named |
False |
|
|
Type |
Specifies the job schedule type:
Default: |
|
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-VBRDailyOptionsCreates new job daily schedule settings. cmdlet. SetFridayas theDayOfWeekparameter value and23:00as thePeriodparameter value. Save the result to the$dailyoptionsvariable. - Run the
New-VBRBackupToTapeScheduleOptionsCreates schedule settings for backup to tape job. cmdlet. Set the$dailyoptionsvariable as theDailyOptionsparameter value. Provide theEnabledparameter. Save the schedule to the$scheduleoptionsvariable for future use.
Related Commands
New-VBRDailyOptionsCreates new job daily schedule settings.New-VBRMonthlyOptionsCreates a new VBRMonthlyOptions object.New-VBRBackupWindowOptionsDefines backup window settings for a job.Get-VBRJobReturns existing jobs.