New-VBRFileToTapeBackupPolicy
Short Description
Creates schedule settings for a file to tape job.
Product Edition: Standard, Enterprise, Enterprise Plus, Veeam Universal License
Syntax
|
New-VBRFileToTapeBackupPolicy [-Type <VBRFileToTapeBackupPolicyType>] [-DailyOptions <VBRDailyOptions>] [-MonthlyOptions <VBRMonthlyOptions>] [-Enabled] [<CommonParameters>] |
Detailed Description
This cmdlet creates the VBRFileToTapeBackupPolicy object. This object contains backup creation schedule settings for file to tape job and is used further to apply these settings to an existing file to tape job.
Parameters
|
Parameter |
Description |
Type |
Required |
Position |
Accept Pipeline Input |
|---|---|---|---|---|---|
|
DailyOptions |
Used to set days for the Default:
Accepts the |
False |
Named |
False |
|
|
Enabled |
Defines if this schedule is enabled.
Default: |
|
False |
Named |
False |
|
MonthlyOptions |
Used to set months for the Default:
Accepts the |
False |
Named |
False |
|
|
Type |
Specifies the backup creation 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
Examples
Creating Monthly Job Schedule for File to Tape Jobs
This example shows how to create file to tape job schedule to run on last Sunday on 22:00 every month. The schedule is enabled.
|
$monthlyoptions = New-VBRMonthlyOptions -DayNumberInMonth Last -DayOfWeek Sunday -Period 22:00 New-VBRFileToTapeBackupPolicy -Type Monthly -MonthlyOptions $monthlyoptions -Enabled |
Perform the following steps:
- Run the
New-VBRMonthlyOptionsCreates a new VBRMonthlyOptions object. cmdlet. Specify theDayNumberInMonth,DayOfWeekand thePeriodparameter values. Save the result to the$monthlyoptionsvariable. - Run the
New-VBRFileToTapeBackupPolicycmdlet. Set theMonthlyoption for theTypeparameter. Set the$monthlyoptionsvariable as theMonthlyOptionsparameter value. Provide theEnabledparameter.
Related Commands
New-VBRDailyOptionsCreates new job daily schedule settings.New-VBRMonthlyOptionsCreates a new VBRMonthlyOptions object.