New-VBRTapeMediaPoolRetentionPolicy
Short Description
Creates a new VBRTapeMediaPoolRetentionPolicy object.
Applies to
Platform: VMware, Hyper-V
Product Edition: Standard, Enterprise, Enterprise Plus
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 | Required | Position | Accept | Accept |
Type | Specifies the data retention type:
| False | Named | False | False |
Period | Specifies the data retention period. Use this parameter to indicate the time period for the Type parameter:
| False | Named | False | 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 Period to Days, Weeks or Months. | 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
VBRTapeMediaPoolRetentionPolicy
Example 1
This command creates a set of retention rules setting retention period to 14 days. The new settings are assigned to a variable that can be further used in Set-VBRTapeMediaPool to apply them.
- The new retention settings are assigned to the '$newretention' variable.
- The Type is set to 'Period', the Period is set to 'Days', and the Value is set to '14'.
Example 2
This command switches off the retention. The new settings are assigned to a variable that can be further used in Set-VBRTapeMediaPool to apply them.
- The new retention settings are assigned to the '$noretention' variable.
- The Type is set to 'Cyclic'.