New-VBRTapeMediaPoolRetentionPolicy
Short Description
Defines retention settings of a media pool.
Applies to
Platform: VMware, Hyper-V
Product Edition: Standard, Enterprise, Enterprise Plus, Veeam Universal License
Syntax
New-VBRTapeMediaPoolRetentionPolicy [-Period <VBRTapeMediaPoolPeriod> {None | Days | Weeks | Months}] [-Type <VBRTapeMediaPoolRetentionType> {Never | Period | Cyclic}] [-Value <int>] [<CommonParameters>] |
Detailed Description
This cmdlet creates the VBRTapeMediaPoolRetentionPolicy object. This object contains the retention settings of media pool.
Retention policy sets overwrite protection rules. The rules are set to media pool and are applied to all tapes belonging to this media pool. After the retention period ends, the tape is queued for overwriting.
Parameters
Parameter | Description | Type | Required | Position | Accept |
---|---|---|---|---|---|
Type | Specifies the data retention type:
| False | Named | False | |
Period | Specifies the data retention period. Use this parameter to indicate the time period for the Type parameter:
| False | Named | False | |
Value | Sets the number of days, weeks or month to protect the data. You can enter value between 1 and 999. Use this parameter to indicate the value if you set the Period parameter to Days, Weeks or Months. | Int32 | False | Named | False |
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see Microsoft Docs.
Output Object
VBRTapeMediaPoolRetentionPolicy
Examples
Example 1. Creating Retention Period Rule for Media Pool
This command defines media pool retention rules and saves the result to the $newretention variable. The retention rules contain the following settings:
|
Example 2. Switching Off Data Retention for Media Pool
This command defines media pool retention rules and saves the result to the $noretention variable. The Type is set to Cyclic.
|