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

New-VBRTapeMediaSetCreationPolicy

In this article

    Short Description

    Creates a new VBRTapeMediaSetCreationPolicy object.

    Applies to

    Platform: VMware, Hyper-V

    Product Edition: Standard, Enterprise, Enterprise Plus

    Syntax

    New-VBRTapeMediaSetCreationPolicy [-DailyOptions <VBRDailyOptions>] [-Type <VBRTapeMediaSetCreationPolicyType> {Never | Always | Daily | Monthly}] [<CommonParameters>]

    Related Commands

    New-VBRDailyOptions

    Return Type

    VBRTapeMediaSetCreationPolicy

    Detailed Description

    This cmdlet creates a new VBRTapeMediaSetCreationPolicy object. This object contains the set of rules for creating media sets. The media set creation policy in applied to media pools configuration.

    Parameters

    Parameter

    Description

    Required

    Position

    Accept
    Pipeline
    Input

    Accept
    Wildcard
    Characters

    DailyOptions

    Specifies the schedule settings you want to apply to the media set.

    Accepts VBRDailyOptions object.

    Default: Selected Days, 18 hours, Saturday.

    False

    Named

    False

    False

    Type

    Specifies the type of policy for creating media sets:

    • Never: new media sets are not created. All data archived to tape is written to the same media set.
    • Always: new media set is created for each tape job session.
    • Daily: new media set is created on particular days. Use the DailyOptions parameter to set days on which you want the media sets to be created.
    • Monthly: not supported.

    Default: Never.

    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 1

    This command creates a set of media set creation rules allowing to create a new media set for every backup session.

    PS C:\PS> New-VBRTapeMediaSetCreationPolicy -Type Always

    Example 2

    This command creates a set of media set creation rules. A new media set will be created every Sunday at 22:00.

    1. Run New-VBRDailyOptions to configure schedule for creating media sets. Save the result to the $dailyoptions variable.
    2. Run New-VBRTapeMediaSetCreationPolicy with this variable. Set the Type parameter to Daily.

    PS C:\PS> $dailyoptions = New-VBRDailyOptions -DayOfWeek Sunday -Period 22:00 -Type SelectedDays

    PS C:\PS> New-VBRTapeMediaSetCreationPolicy -DailyOptions $dailyoptions -Type Daily