Set-DPMTapeBackupOption

Set-DPMTapeBackupOption

Modifies the tape backup and library options for a DPM protection group.

構文

Parameter Set: LibraryOptions
Set-DPMTapeBackupOption [-ProtectionGroup] <ProtectionGroup> -BackupLibrary <Library> -DrivesAllocated <Int32> [-PassThru] [-PGSet <PGSet> ] [-RemovePGSet] [-TapeCopyLibrary <Library> ] [-Confirm] [-WhatIf] [ <CommonParameters>]

Parameter Set: LongTerm
Set-DPMTapeBackupOption [-ProtectionGroup] <ProtectionGroup> -LongTerm [-CompressData] [-EncryptData] [-PassThru] [-PerformIntegritycheck] [-PGSet <PGSet> ] [-RemovePGSet] [-Confirm] [-WhatIf] [ <CommonParameters>]

Parameter Set: ShortTerm
Set-DPMTapeBackupOption [-ProtectionGroup] <ProtectionGroup> -ShortTerm [-CompressData] [-EncryptData] [-PassThru] [-PerformIntegritycheck] [-PGSet <PGSet> ] [-RemovePGSet] [-Confirm] [-WhatIf] [ <CommonParameters>]

詳細説明

The Set-DPMTapeBackupOption cmdlet modifies the tape backup options, such as library and drive information, and short-term and long-term tape backup options for a System Center 2012 – Data Protection Manager (DPM) protection group.

パラメーター

-BackupLibrary<Library>

Specifies a backup library.

エイリアス

none

必須?

true

位置は?

named

既定値

none

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-CompressData

Indicates that the backup process compresses the data to reduce storage needs. Do not use compression and encryption together.

エイリアス

none

必須?

false

位置は?

named

既定値

none

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-DrivesAllocated<Int32>

Specifies the number of drives to allocate to the protection group.

エイリアス

none

必須?

true

位置は?

named

既定値

none

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-EncryptData

Indicates that the backup process encrypts the data during backup. Do not use compression and encryption together.

エイリアス

none

必須?

false

位置は?

named

既定値

none

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-LongTerm

Indicates that the protection group uses long-term tape protection. Do not use this parameter with the ShortTerm parameter. You must set LongTerm and ShortTerm options in separate commands.

エイリアス

none

必須?

true

位置は?

named

既定値

none

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-PassThru

Indicates that the cmdlet is part of a pipeline.

エイリアス

none

必須?

false

位置は?

named

既定値

none

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-PerformIntegritycheck

Indicates that the backup process performs an integrity check on the tape backup.

エイリアス

none

必須?

false

位置は?

named

既定値

none

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-PGSet<PGSet>

Specifies the name of a protection group set.

エイリアス

none

必須?

false

位置は?

named

既定値

none

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-ProtectionGroup<ProtectionGroup>

Specifies the name of a protection group.

エイリアス

none

必須?

true

位置は?

1

既定値

none

パイプライン入力を許可する

True (ByValue)

ワイルドカード文字を許可する

false

-RemovePGSet

Indicates that the cmdlet removes the protection group set as an option.

エイリアス

none

必須?

false

位置は?

named

既定値

none

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-ShortTerm

Indicates that the protection group will be on disk, on tape, or on neither, if nothing is specified. Do not use this parameter with the LongTerm parameter. You must set LongTerm and ShortTerm options in separate commands.

エイリアス

none

必須?

true

位置は?

named

既定値

none

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-TapeCopyLibrary<Library>

Specifies a library object. Use the secondary tape library to make copies of the tape in the backup library.

エイリアス

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)。

入力

入力型は、コマンドレットにパイプできるオブジェクトの型です。

出力

出力型は、コマンドレットによって生成されるオブジェクトの型です。

  • ProtectionGroup

  • For more information, type "Get-Help Set-DPMTapeBackupOption -detailed".

Example 1: Set tape backup options for short-term backup

This example sets the tape backup options to short-term backup with encryption.

The first command uses the Get-ProtectionGroup cmdlet and stores the result in the variable named $PGroup.

The second command uses the Set-DPMTapeBackupOption cmdlet to set the ShortTerm and Encryption parameters.

PS C:\> $PGroup = Get-ProtectionGroup -DPMServerName "Contoso-DPMServer"PS C:\> Set-DPMTapeBackupOption -ProtectionGroup $PGroup -ShortTerm -EncryptData

Example 2: Set tape backup options for a protection group

This example sets the tape backup option for the protection group in the variable named $MPGroup.

The first command uses the Get-ProtectionGroup cmdlet and stores the result in the variable named $PGroup.

The second command uses the Get-ModifiableProtectionGroup cmdlet to retrieve the settings for the first protection group, and stores the result in the variable named $MPGroup.

The third command uses the Get-DPMLibrary cmdlet and stores the result in the variable named $Lib.

The fourth command uses the Set-DPMTapeBackupOption cmdlet to set the BackupLibrary and DrivesAllocated parameters.

The fifth command uses the Set-ProtectionGroup cmdlet to set the protection group to the value in the $MPGroup variable.

PS C:\> $PGroup = Get-ProtectionGroup "Contoso-DPMServer"PS C:\> $MPGroup = Get-ModifiableProtectionGroup -ProtectionGroup $PGroup[0]PS C:\> $Lib = Get-DPMLibrary "Contoso-DPMServer"PS C:\> Set-DPMTapeBackupOption -ProtectionGroup $MPGroup -BackupLibrary $Lib -DrivesAllocated 1PS C:\> Set-ProtectionGroup $MPGroup

関連トピック

Get-DPMTapeBackupOption