Get-OBRetentionPolicy

Get-OBRetentionPolicy

Gets the current retention policy for backups from the backup policy (OBPolicy object).

语法

Parameter Set: Default
Get-OBRetentionPolicy [-Policy] <CBPolicy> [ <CommonParameters>]

详细说明

The Get-OBRetentionPolicy cmdlet gets the current retention policy for backups from the backup policy (OBPolicy object). The retention policy allows the number of retention days to be set to one of the following values: 7, 15, 30.

参数

-Policy<CBPolicy>

Specify the OBPolicy object for which the OBRetentionPolicy should be retrieved.

别名

none

是否必需?

true

在哪里?

1

默认值

none

是否接受管道输入?

true (ByValue)

是否接受通配符?

false

<CommonParameters>

此 cmdlet 支持常见的参数:-Verbose、-Debug、-ErrorAction、-ErrorVariable、-OutBuffer 和 -OutVariable。有关详细信息,请参阅 TechNet 上的 about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216)。

输入

输入类型是可以传送到 cmdlet 的对象的类型。

  • None

输出

输出类型是 cmdlet 发出的对象的类型。

  • Microsoft.Internal.CloudBackup.Commands.OBPolicy

示例

EXAMPLE 1

This example returns a saved retention policy.

PS C:\> Get-OBPolicy | Get-OBRetentionPolicy

相关主题

Get-OBPolicy