Set-DPMProtectionType
Set-DPMProtectionType
Sets the protection type for a protection group.
構文
Parameter Set: Default
Set-DPMProtectionType [-ProtectionGroup] <ProtectionGroup> [-LongTerm <DbEnums+LongTermProtection]> ] [-PassThru] [-ShortTerm <DbEnums+DataLocation]> ] [-Confirm] [-WhatIf] [ <CommonParameters>]
詳細説明
The Set-DPMProtectionType cmdlet sets the protection type for a protection group.
You can use the ShortTerm and LongTerm parameters individually or in combination to define protection types.
You can set the following combinations for a protection type:
-- ShortTerm Disk: Disk to Disk
-- ShortTerm Tape: Disk to Tape
-- LongTerm Tape: Disk to Tape (long-term)
-- ShortTerm Disk -LongTerm: Disk to Disk to Tape
-- ShortTerm Tape -LongTerm: Disk to Tape to Tape
パラメーター
-LongTerm<DbEnums+LongTermProtection]>
Specifies that the protection group is set to long-term tape protection. The acceptable values for this parameter are:
-- Tape
-- Online
-- OnlineAndTape
エイリアス |
none |
必須? |
false |
位置は? |
named |
既定値 |
none |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-PassThru
Indicates that the cmdlet generates output. By default, this cmdlet does not generate output. You can use the PassThru parameter in order to use the cmdlet in a pipeline.
エイリアス |
none |
必須? |
false |
位置は? |
named |
既定値 |
none |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-ProtectionGroup<ProtectionGroup>
Specifies a ProtectionGroup object. To obtain a ProtectionGroup object, use the Get-DPMProtectionGroup cmdlet.
エイリアス |
none |
必須? |
true |
位置は? |
1 |
既定値 |
none |
パイプライン入力を許可する |
true (ByValue) |
ワイルドカード文字を許可する |
false |
-ShortTerm<DbEnums+DataLocation]>
Specifies that the protection group is on disk, on tape, or on neither, if you do not specify a value. Valid values are: disk, tape.
エイリアス |
none |
必須? |
false |
位置は? |
named |
既定値 |
none |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-Confirm
コマンドレットを実行する前に、ユーザーに確認を求めます。
必須? |
false |
位置は? |
named |
既定値 |
false |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-WhatIf
コマンドレットを実行するとどのような結果になるかを表示します。コマンドレットは実行されません。
必須? |
false |
位置は? |
named |
既定値 |
false |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
<CommonParameters>
このコマンドレットは次の共通パラメーターをサポートします。-Verbose、-Debug、-ErrorAction、-ErrorVariable、-OutBuffer、-OutVariable.詳細については、以下を参照してください。 about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216)。
入力
入力型は、コマンドレットにパイプできるオブジェクトの型です。
出力
出力型は、コマンドレットによって生成されるオブジェクトの型です。
注
- For more information, type "
Get-Help Set-DPMProtectionType -detailed
".
例
Example 1: Set the protection type to short term on disk
This example sets the protection type for the protection group to short-term on disk.
The first command gets the protection group on the DPM server named DPMServer02 and store the results in the $Pg variable.
The second command sets the protection type for the protection group stored in the $Pg variable to short-term on disk.
PS C:\> $Pg = New-DPMProtectionGroup -DPMServerName "DPMServer02"
PS C:\> $Pg Set-DPMProtectionType -ProtectionGroup $Pg -ShortTerm Disk
Example 2: Set the protection type to disk to disk to tape
This example sets the protection type for the protection group to short-term disk to disk to tape.
The first command gets the protection group on the DPM server named DPMServer02 and store the results in the $Pg variable.
The second command sets the protection type for the protection group stored in the $Pg variable to disk to disk to tape.
PS C:\> $Pg = New- DPMProtectionGroup -DPMServerName "DPMServer02"
PS C:\> Set-DPMProtectionType -ProtectionGroup $Pg -ShortTerm Disk –LongTerm Tape