Set-DPMAutoProtectIntent
为SQL Server实例打开或关闭 DPM 自动保护。
语法
Set-DPMAutoProtectIntent
[-ProtectionGroup] <ProtectionGroup>
[-SQLInstanceName] <String[]>
[-AutoProtectIntent] <AutoProtectionIntent>
[-AutoProtectCloudIntent] <Enable/Disable>
[-ProductionServer] <ProductionServer>
[-WhatIf]
[-Confirm]
[<CommonParameters>]
说明
Set-DPMAutoProtectIntent cmdlet 为 Microsoft SQL Server数据管理软件实例打开或关闭 System Center 2019 - Data Protection Manager (DPM) 自动保护。 对SQL Server实例使用自动保护时,DPM 标识和保护添加到该实例的新数据库。 若要更改自动保护设置,请指定SQL Server实例、它所属的保护组和生产服务器。
首次将SQL Server实例添加到保护组时,DPM 服务器将为该实例启用自动保护。
示例
1:
参数
-AutoProtectCloudIntent
指定 commandlet 是打开还是关闭 Cloud 自动保护。 如果设置为“启用”,则保护组中所有设置为自动保护磁盘的数据源都将自动保护到云。 如果设置为“禁用”,则自动保护到云将停止。
此参数的可接受值为:启用和禁用。
Type: | AutoProtectCloudIntent |
Position: | 4 |
Default value: | Disable |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-AutoProtectIntent
指定 cmdlet 是打开还是关闭自动保护。
此参数的可接受值为:启用和禁用。
Type: | AutoProtectionIntent |
Accepted values: | Enable, Disable |
Position: | 3 |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Confirm
提示你在运行 cmdlet 之前进行确认。
Type: | SwitchParameter |
Aliases: | cf |
Position: | Named |
Default value: | False |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-ProductionServer
指定安装 DPM 保护代理的计算机。
Type: | ProductionServer |
Position: | 5 |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-ProtectionGroup
指定运行此 cmdlet 的保护组。 若要获取 ProtectionGroup 对象,请使用 Get-DPMProtectionGroup cmdlet。
Type: | ProtectionGroup |
Position: | 1 |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-SQLInstanceName
指定SQL Server实例的名称数组。
Type: | String[] |
Position: | 2 |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-WhatIf
显示在此 cmdlet 运行的情况下将会发生什么。 此 cmdlet 未运行。
Type: | SwitchParameter |
Aliases: | wi |
Position: | Named |
Default value: | False |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |