New-OBRetentionPolicy
Updated: April 4, 2013
Applies To: Windows Server 2012
New-OBRetentionPolicy
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.
To use Windows Azure Backup cmdlets, the user must be a member of the Administrators group or Backup Operators group.
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.
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
Related topics
