Get-OBPolicy

Get-OBPolicy

Gets the current backup policy set for the server.

语法

Get-OBPolicy [ <CommonParameters>]

详细说明

The Get-OBPolicy cmdlet gets the current backup policy that is set for the server, including the details about scheduling backups, files included in the backup, and retention policy.

Once the changes have been made to the policy object, the updated policy should be set as the current one using the Set-OBPolicy cmdlet.

参数

<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 policy.

PS C:\> Get-OBPolicy

相关主题

Set-OBPolicy