New-OBPolicy

New-OBPolicy

Generates an empty OBPolicy object.

语法

New-OBPolicy [ <CommonParameters>]

详细说明

The New-OBPolicy cmdlet creates a new, empty backup policy (OBPolicy object).

Other cmdlets can be used to define what items will be included or excluded in backups, when the backups will run, and where backups will be stored. Then, use the Set-OBPolicy cmdlet to make the new policy the one that will be used for scheduled backups.

参数

<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 creates a new empty backup policy.

PS C:\> New-OBPolicy

相关主题

Set-OBPolicy