Update-DPMPGSet

Updates and saves changes to a protection group set.

Syntax

Update-DPMPGSet
      [-AllowDifferentRetentionPeriods]
      [-PGSet] <PGSet>
      [-Name] <String>
      [-WritePeriodUnit] <TimeUnit>
      [-WritePeriodValue] <UInt32>
      [-ExpiryToleranceUnit] <TimeUnit>
      [-ExpiryToleranceValue] <UInt32>
      [-WhatIf]
      [-Confirm]
      [<CommonParameters>]
Update-DPMPGSet
      [-AllowDifferentRetentionPeriods]
      [-PGSet] <PGSet>
      [-WhatIf]
      [-Confirm]
      [<CommonParameters>]
Update-DPMPGSet
      [-PGSet] <PGSet>
      [-Remove] <ProtectionGroup>
      [-WhatIf]
      [-Confirm]
      [<CommonParameters>]
Update-DPMPGSet
      [-PGSet] <PGSet>
      [-Name] <String>
      [-WhatIf]
      [-Confirm]
      [<CommonParameters>]
Update-DPMPGSet
      [-PGSet] <PGSet>
      [-WritePeriodUnit] <TimeUnit>
      [-WritePeriodValue] <UInt32>
      [-ExpiryToleranceUnit] <TimeUnit>
      [-ExpiryToleranceValue] <UInt32>
      [-WhatIf]
      [-Confirm]
      [<CommonParameters>]
Update-DPMPGSet
      [-PGSet] <PGSet>
      [-Add] <ProtectionGroup>
      [-WhatIf]
      [-Confirm]
      [<CommonParameters>]

Description

The Update-DPMPGSet cmdlet updates and saves changes to a System Center 2019 - Data Protection Manager (DPM) protection group set. A DPM protection group is a collection of protection groups that you collocate on the same tape.

Examples

Example 1: Update 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

This example updates the first protection group set from protection group 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 protection group sets for the specified server and stores them in the $PGSet variable.

The second command specifies the first member of $PGSet by using standard array notation. The command updates values for write period and expiry tolerance.

Example 2: Add a protection group to a protection group set

PS C:\>$PGSet = Get-DPMPGSet -DPMServerName "DPMServer07"
PS C:\> $PGroup = Get-DPMProtectionGroup -DPMServerName "DPMServer07" | where {($_.friendlyname) -match "PG1" }
PS C:\> Update-DPMPGSet -PGSet $PGSet[0] -Add $PGroup

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 protection group sets for the specified server and stores them in the $PGSet variable.

The second command uses the Get-DPMProtectionGroup cmdlet to get a protection group from the specified DPM server that has a name that contains PG1, and then stores it in the $PGroup 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 protection group stored in $PGroup.

Example 3: Remove a protection group from a protection group set

PS C:\>$PGSet = Get-DPMPGSet -DPMServerName "DPMServer07"
PS C:\> $PGroup = Get-DPMProtectionGroup -DPMServerName "DPMServer07" | where { ($_.friendlyname) -match "PG1" }
PS C:\> Update-DPMPGSet -PGSet $PGSet[0] -Remove $PGroup

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 protection group sets for the specified server and stores them in the $PGSet variable.

The second command uses the Get-DPMProtectionGroup cmdlet to get a protection group from the specified DPM server that has a name that contains PG1, and then stores it in the $PGroup variable.

The third command specifies the first member of $PGSet by using standard array notation. The command updates that set to no longer contain the protection group stored in $PGroup.

Parameters

-Add

Specifies a protection group. The cmdlet adds this protection group to the protection group set.

Type:ProtectionGroup
Position:2
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-AllowDifferentRetentionPeriods

Indicates that protection groups with different retention periods can be part of the same protection group set.

Type:SwitchParameter
Position:2
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:False
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-ExpiryToleranceUnit

Specifies the measurement unit for expiry tolerance. The acceptable values for this parameter are:

  • Day
  • Week
  • Month
  • Year
Type:TimeUnit
Accepted values:Invalid, Day, Week, Month, Year
Position:4
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-ExpiryToleranceValue

Specifies the maximum length of time for which an expired recovery point remains on a tape before DPM marks the tape as expired.

Type:UInt32
Position:5
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-Name

Specifies a new name for the protection group set.

Type:String
Position:2
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-PGSet

Specifies a protection group set that this cmdlet updates. To obtain a protection group set object, use the Get-DPMPGSet cmdlet.

Type:PGSet
Position:1
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-Remove

Specifies a protection group. The cmdlet removes this protection group from the protection group set.

Type:ProtectionGroup
Position:2
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type:SwitchParameter
Aliases:wi
Position:Named
Default value:False
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-WritePeriodUnit

Specifies the measurement unit for the write period. The acceptable values for this parameter are:

  • Day
  • Week
  • Month
  • Year
Type:TimeUnit
Accepted values:Invalid, Day, Week, Month, Year
Position:2
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-WritePeriodValue

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.

Type:UInt32
Position:3
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False