New-OBRetentionPolicy

Creates a new OBRetentionPolicy specifying the number of days that the backup needs to be retained.

Syntax

New-OBRetentionPolicy
   [[-RetentionDays] <Long {7 | 15 | 30}>]

Description

The New-OBRetentionPolicy creates a new OBRetentionPolicy object specifying the number of days to retain the backed up items.

ps_mob_user_group_remark

Examples

EXAMPLE 1

PS C:\> New-OBRetentionPolicy -RetentionDays 30

This example creates a new retention policy.

Optional Parameters

-RetentionDays

Specifies the number of days to retain the backup data. Retention days must be specified as either 7, 15, or 30. Other integers are not supported.

Type:Long {7 | 15 | 30}
Position:2
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Inputs

None

Outputs

Microsoft.Internal.CloudBackup.Commands.OBRetentionPolicy

Specifies the number of days that the backup needs to be retained.