New-VBRTapeMediaSetCreationPolicy

Short Description

Defines a set of rules for creating media sets.

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. You can apply these settings when configuring media sets.

Parameters

Parameter

Description

Type

Required

Position

Accept
Pipeline
Input

DailyOptions

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

Default: Selected Days, 18 hours, Saturday.

Accepts the VBRDailyOptions object. To create this object, run the New-VBRDailyOptions cmdlet.

False

Named

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.

VBRTapeMediaSetCreationPolicyType

False

Named

False

<CommonParameters>

This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see Microsoft Docs.

Output Object

VBRTapeMediaSetCreationPolicy

Examples

New-VBRTapeMediaSetCreationPolicyExample 1. Creating Media Set Creation Rules - New Media Set for Every Backup Session

This command defines media set creation rules. A new media set will be created for every backup session.

New-VBRTapeMediaSetCreationPolicy -Type Always

New-VBRTapeMediaSetCreationPolicyExample 2. Creating Media Set Creation Rules - New Media Set Every Sunday

This example shows how to define media set creation rules. This cmdlet will create a new media set every Sunday at 22:00.

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

New-VBRTapeMediaSetCreationPolicy -DailyOptions $dailyoptions -Type Daily

Perform the following steps:

  1. Run the New-VBRDailyOptions cmdlet. Specify the DayOfWeek, Period and the Type parameter values. Save the result to the $dailyoptions variable.
  2. Run the New-VBRTapeMediaSetCreationPolicy cmdlet. Set the $dailyoptions variable as the DailyOptions parameter value. Set the Daily option for the Type parameter.

Related Commands

New-VBRDailyOptions

Page updated 4/10/2024

Page content applies to build 12.2.0.334