This is an archive version of the document. To get the most up-to-date information, see the current version.

New-VBRFileToTapeBackupPolicy

In this article

    Short Description

    Creates a new VBRFileToTapeBackupPolicy object.

    Applies to

    Platform: VMware, Hyper-V

    Product Edition: Standard, Enterprise, Enterprise Plus

    Syntax

    New-VBRFileToTapeBackupPolicy [-Type <VBRFileToTapeBackupPolicyType>] [-DailyOptions <VBRDailyOptions>] [-MonthlyOptions <VBRMonthlyOptions>] [-Enabled] [-WarningAction <ActionPreference>] [-WarningVariable <String>] [<CommonParameters>]

    Related Commands

    New-VBRDailyOptions

    New-VBRMonthlyOptions

    Return Type

    VBRFileToTapeBackupPolicy

    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

    Required

    Position

    Accept
    Pipeline
    Input

    Accept
    Wildcard
    Characters

    Type

    Specifies the backup creation schedule type:

    • Daily: the target files will be archived on selected days. Use the DailyOptions parameter to set the days.
    • Monthly: the target files will be archived on selected months. Use the MonthlyOptions parameter to set the months.

    Default: Daily.

    False

    Named

    False

    False

    Daily
    Options

    Used to set days for the Type parameter (Daily option).

    Default:

    • Type: SelectedDays
    • Period: 18:00
    • DayOfWeek: Saturday

    False

    Named

    False

    False

    Monthly
    Options

    Used to set months for the Type parameter (Monthly option).

    Default:

    • Period: 22:00
    • DayNumberInMonth: Fourth,
    • DayOfWeek: Saturday,
    • Months: January, February, March, April, May, June, July, August, September, October, November, December.

    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 about common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.

    Example

    This command creates file to tape job schedule to run on last Sunday on 22:00 every month. The schedule is enabled.

    PS C:\PS>  $monthlyoptions = New-VBRMonthlyOptions -DayNumberInMonth Last -DayOfWeek Sunday -Period 22:00

    PS C:\PS> New-VBRFileToTapeBackupPolicy -Type Monthly -MonthlyOptions $monthlyoptions -Enabled