New-VBRFileToTapeBackupPolicy
Short Description
Creates schedule settings for a file to tape job.
Applies to
Platform: VMware, Hyper-V
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 |
---|---|---|---|---|---|
Type | Specifies the backup creation 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 |
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
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-VBRMonthlyOptions cmdlet. Specify the DayNumberInMonth, DayOfWeek and the Period parameter values. Save the result to the $monthlyoptions variable.
- Run the New-VBRFileToTapeBackupPolicy cmdlet. Set the Monthly option for the Type parameter. Set the $monthlyoptions variable as the MonthlyOptions parameter value. Provide the Enabled parameter.
Related Commands