Set-DPMProtectionType
Updated: January 14, 2013
Applies To: System Center 2012 - Data Protection Manager
Set-DPMProtectionType
Syntax
Parameter Set: Default Set-DPMProtectionType [-ProtectionGroup] <ProtectionGroup> [-LongTerm <LongTermProtection> ] [-PassThru] [-ShortTerm <DataLocation> ] [-Confirm] [-WhatIf] [ <CommonParameters>]
Detailed Description
The Set-DPMProtectionType cmdlet allows you to specify the protection type to be used with the protection group.
The ShortTerm and LongTerm parameters can be used individually or in a combination to define the various protection types.
The various combinations are:
-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>
Indicates that the protection group is set to long-term tape protection. This parameter can take the values Tape, Online, and OnlineAndTape.
|
Aliases |
none |
|
Required? |
false |
|
Position? |
named |
|
Default Value |
Tape |
|
Accept Pipeline Input? |
false |
|
Accept Wildcard Characters? |
false |
-PassThru
Use the PassThru parameter to allow cmdlets to be part of a pipeline. The -PassThru parameter can be used with many commands in DPM to return a related object in cases where there is no default output. Using the PassThru parameter allows such cmdlets to be part of a pipeline.
|
Aliases |
none |
|
Required? |
false |
|
Position? |
named |
|
Default Value |
none |
|
Accept Pipeline Input? |
false |
|
Accept Wildcard Characters? |
false |
-ProtectionGroup<ProtectionGroup>
Provide a protection group object.
|
Aliases |
none |
|
Required? |
true |
|
Position? |
1 |
|
Default Value |
none |
|
Accept Pipeline Input? |
true (ByValue) |
|
Accept Wildcard Characters? |
false |
-ShortTerm<DataLocation>
Indicates that the protection group will be on disk, on tape, or on neither, if nothing is specified.
|
Aliases |
none |
|
Required? |
false |
|
Position? |
named |
|
Default Value |
none |
|
Accept Pipeline Input? |
false |
|
Accept Wildcard Characters? |
false |
-Confirm
Prompts you for confirmation before executing the command.
|
Required? |
false |
|
Position? |
named |
|
Default Value |
false |
|
Accept Pipeline Input? |
false |
|
Accept Wildcard Characters? |
false |
-WhatIf
Describes what would happen if you executed the command without actually executing the command.
|
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.
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".
For technical information, type "Get-Help Set-DPMProtectionType -full".
Examples
EXAMPLE 1
This command sets the protection type for the protection group to short-term on disk.
PS C:\>$pg = New-ProtectionGroup -DPMServerName TestingServerSet-DPMProtectionType -ProtectionGroup $pg -ShortTerm disk
EXAMPLE 2
This command sets the protection type for the protection group to disk to disk to tape.
PS C:\>$pg = New-ProtectionGroup -DPMServerName TestingServerSet-DPMProtectionType -ProtectionGroup $pg -ShortTerm disk –LongTerm Tape
