Set-DPMProtectionType
Set-DPMProtectionType
Sets the protection type for a protection group.
Syntax
Parameter Set: Default
Set-DPMProtectionType [-ProtectionGroup] <ProtectionGroup> [-LongTerm <LongTermProtection> ] [-PassThru] [-ShortTerm <DataLocation> ] [-Confirm] [-WhatIf] [ <CommonParameters>]
Detailed Description
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
Parameters
-LongTerm<LongTermProtection>
Specifies that the protection group is set to long-term tape protection. The acceptable values for this parameter are:
-- Tape
-- Online
-- OnlineAndTape
Aliases |
none |
Required? |
false |
Position? |
named |
Default Value |
Tape |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
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.
Aliases |
none |
Required? |
false |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
-ProtectionGroup<ProtectionGroup>
Specifies a ProtectionGroup object. To obtain a ProtectionGroup object, use the Get-DPMProtectionGroup cmdlet.
Aliases |
none |
Required? |
true |
Position? |
1 |
Default Value |
none |
Accept Pipeline Input? |
true (ByValue) |
Accept Wildcard Characters? |
false |
-ShortTerm<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.
Aliases |
none |
Required? |
false |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
-Confirm
Prompts you for confirmation before running the cmdlet.
Required? |
false |
Position? |
named |
Default Value |
false |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
-WhatIf
Shows what would happen if the cmdlet runs. The cmdlet is not run.
Required? |
false |
Position? |
named |
Default Value |
false |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
<CommonParameters>
This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).
Inputs
The input type is the type of the objects that you can pipe to the cmdlet.
Outputs
The output type is the type of the objects that the cmdlet emits.
Notes
- For more information, type "
Get-Help Set-DPMProtectionType -detailed
".
Examples
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
Related topics
New-ProtectionGroup