Update-DPMPGSet
Update-DPMPGSet
Updates and saves changes to a PG set.
Syntax
Parameter Set: AllParams
Update-DPMPGSet [-PGSet] <PGSet> [-Name] <String> [-WritePeriodUnit] <TimeUnit> [[-AllowDifferentRetentionPeriods]] [-WritePeriodValue] <UInt32> [-ExpiryToleranceUnit] <TimeUnit> [-ExpiryToleranceValue] <UInt32> [-Confirm] [-WhatIf] [ <CommonParameters>]
Parameter Set: AddPG
Update-DPMPGSet [-PGSet] <PGSet> [-Add] <ProtectionGroup> [-Confirm] [-WhatIf] [ <CommonParameters>]
Parameter Set: AllowDiffRetnPeriodsFlag
Update-DPMPGSet [-PGSet] <PGSet> [-AllowDifferentRetentionPeriods] [-Confirm] [-WhatIf] [ <CommonParameters>]
Parameter Set: ChangeName
Update-DPMPGSet [-PGSet] <PGSet> [-Name] <String> [-Confirm] [-WhatIf] [ <CommonParameters>]
Parameter Set: ChangeTimePeriods
Update-DPMPGSet [-PGSet] <PGSet> [-WritePeriodUnit] <TimeUnit> [-WritePeriodValue] <UInt32> [-ExpiryToleranceUnit] <TimeUnit> [-ExpiryToleranceValue] <UInt32> [-Confirm] [-WhatIf] [ <CommonParameters>]
Parameter Set: RemovePG
Update-DPMPGSet [-PGSet] <PGSet> [-Remove] <ProtectionGroup> [-Confirm] [-WhatIf] [ <CommonParameters>]
Detailed Description
The Update-DPMPGSet cmdlet updates and saves changes to a System Center 2012 – Data Protection Manager (DPM) protection group (PG) set. A DPM PG is a collection of protection groups that you collocate on the same tape.
Parameters
-Add<ProtectionGroup>
Specifies a protection group. The cmdlet adds this PG to the PG set.
Aliases |
none |
Required? |
true |
Position? |
2 |
Default Value |
none |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
-AllowDifferentRetentionPeriods
Indicates that protection groups with different retention periods can be part of the same PG set.
Aliases |
none |
Required? |
true |
Position? |
2 |
Default Value |
none |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
-ExpiryToleranceUnit<TimeUnit>
Specifies the measurement unit for expiry tolerance.
Aliases |
none |
Required? |
true |
Position? |
4 |
Default Value |
none |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
-ExpiryToleranceValue<UInt32>
Specifies the maximum length of time for which an expired recovery point can remain on a tape until DPM marks the tape as expired.
Aliases |
none |
Required? |
true |
Position? |
5 |
Default Value |
none |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
-Name<String>
Specifies a new name for the PG set.
Aliases |
none |
Required? |
true |
Position? |
2 |
Default Value |
none |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
-PGSet<PGSet>
Specifies a PG set to update.
Aliases |
none |
Required? |
true |
Position? |
1 |
Default Value |
none |
Accept Pipeline Input? |
True (ByValue) |
Accept Wildcard Characters? |
false |
-Remove<ProtectionGroup>
Specifies a protection group. The cmdlet removes this PG from the PG set.
Aliases |
none |
Required? |
true |
Position? |
2 |
Default Value |
none |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
-WritePeriodUnit<TimeUnit>
Specifies the measurement unit for the write period.
Aliases |
none |
Required? |
true |
Position? |
2 |
Default Value |
none |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
-WritePeriodValue<UInt32>
Specifies the length of time for which a tape is available for writing new backups. DPM marks the tape as Offsite Ready after this interval.
Aliases |
none |
Required? |
true |
Position? |
3 |
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 Update-DPMPGSet -detailed
".
Examples
Example 1: Update write period and expiry tolerance
This example updates the first PG set from PG sets on the on the server DPMServer07 with values for write period and expiry tolerance.
The first command uses the Get-DPMPGSet cmdlet to get the PG sets for the specified server and stores them in the $PgSet variable.
The second command specifies the first member of the $PgSet variable by using standard array notation. The command updates values for write period and expiry tolerance.
PS C:\> $PgSet = Get-DPMPGSet -DPMServerName "DPMServer07"
PS C:\> Update-DPMPGSet -PGSet $PgSet[0] -Name "PGSset3" -WritePeriodUnit day -WritePeriodValue 60 -ExpiryToleranceUnit Day -ExpiryToleranceValue 10
Example 2: Add a PG to a PG set
This example adds a protection group from DPMServer07 to the first protection group set on that DPM server.
The first command uses the Get-DPMPGSet cmdlet to get the PG sets for the specified server and stores them in the $PgSet variable.
The second command uses the Get-DPMProtectionGroup cmdlet to get a PG from the specified DPM server that has a name that contains PG1 and stores it in the $Pg variable.
The third command specifies the first member of the $PgSet variable by using standard array notation. The command updates that set to contain the PG stored in the $Pg variable.
PS C:\> $PgSet = Get-DPMPGSet -DPMServerName "DPMServer07"
PS C:\> $Pg = Get-DPMProtectionGroup -DPMServerName "DPMServer07" | where {($_.friendlyname) -match "PG1" }
PS C:\> Update-DPMPGSet -PGSet $PgSet[0] -Add $Pg
Example 3: Remove a PG from a PG set
This example removes the first protection group set from the list of protection group sets on the DPM server TestingServer.
The first command uses the Get-DPMPGSet cmdlet to get the PG sets for the specified server and stores them in the $PgSet variable.
The second command uses the Get-DPMProtectionGroup cmdlet to get a PG from the specified DPM server that has a name that contains PG1 and stores it in the $Pg variable.
The third command specifies the first member of the $PgSet variable by using standard array notation. The command updates that set to no longer contain the PG stored in the $Pg variable.
PS C:\> $PgSet = Get-DPMPGSet -DPMServerName "DPMServer07"
PS C:\> $Pg = Get-ProtectionGroup -DPMServerName "DPMServer07" | where { ($_.friendlyname) -match "PG1" }
PS C:\> Update-DPMPGSet -PGSet $PgSet[0] -Remove $Pg