New-OBRetentionPolicy
New-OBRetentionPolicy
Creates a new OBRetentionPolicy specifying the number of days that the backup needs to be retained.
Syntax
Parameter Set: Default
New-OBRetentionPolicy [[-RetentionDays] <Long {7 | 15 | 30}> ] [ <CommonParameters>]
Detailed Description
The New-OBRetentionPolicy creates a new OBRetentionPolicy object specifying the number of days to retain the backed up items.
Parameters
-RetentionDays<Long {7 | 15 | 30}>
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.
Aliases |
none |
Required? |
false |
Position? |
2 |
Default Value |
none |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
<CommonParameters>
This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).
Inputs
The input type is the type of the objects that you can pipe to the cmdlet.
- None
Outputs
The output type is the type of the objects that the cmdlet emits.
Microsoft.Internal.CloudBackup.Commands.OBRetentionPolicy
Specifies the number of days that the backup needs to be retained.
Examples
EXAMPLE 1
This example creates a new retention policy.
PS C:\> New-OBRetentionPolicy -RetentionDays 30