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

New-VBRTapeMediaSetCreationPolicy

Short Description

Creates a new VBRTapeMediaSetCreationPolicy object.

Applies to

Platform: VMware, Hyper-V

Product Edition: Standard, Enterprise, Enterprise Plus, Veeam Universal License

Syntax

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

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 type.

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 on common parameters, see the About CommonParameters section of Microsoft Docs.

Return Type

VBRTapeMediaSetCreationPolicy

Example 1

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

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.

$dailyoptions = New-VBRDailyOptions -DayOfWeek Sunday -Period 22:00 -Type SelectedDays

New-VBRTapeMediaSetCreationPolicy -DailyOptions $dailyoptions -Type Daily

Related Commands

New-VBRDailyOptions