--- title: "Set-VBRPluginCopyJobStorageOptions" description: "This cmdlet modifies storage optimization settings for plug-in backup copy jobs. To modify settings, specify new values for the necessary parameters. The cmdlet will overwrite the previous parameter values with new values." canonical: "https://helpcenter.veeam.com/docs/vbr/powershell/set-vbrplugincopyjobstorageoptions.html" breadcrumb: "Veeam PowerShell Reference > Veeam PowerShell Reference > Backup Copy > Plug-In Backup Copy Job > Set-VBRPluginCopyJobStorageOptions" dateModified: "2026-08-19" --- # Set-VBRPluginCopyJobStorageOptions ## Short Description Modifies storage optimization settings for plug-in backup copy jobs. **Product Edition**: Standard, Enterprise, Enterprise Plus, Veeam Universal License ## Syntax ``` Set-VBRPluginCopyJobStorageOptions -Options [-EnableDataDeduplication] [-CompressionLevel ] [-StorageOptimizationType ] [-EnableEncryption] [-EncryptionKey ] [-KMSServer ] [] ``` ## Detailed Description This cmdlet modifies storage optimization settings for plug-in backup copy jobs. ::: note To modify settings, specify new values for the necessary parameters. The cmdlet will overwrite the previous parameter values with new values. The parameters that you omit will remain unchanged. ::: ## Parameters

Parameter

Description

Type

Required

Position

Accept Pipeline Input

CompressionLevel

Specifies a compression level of backup files created with a plug-in backup copy job. You can specify either of the following compression levels:

  • Auto: use this option to set the same compression level as in the copied backup files.
  • None: use this option if you do not want to enable data compression.
  • Dedupe-friendly: use this option to set a dedupe-friendly compression level.
  • Optimal: use this option to set an optimal compression level.
  • High: use this option to set a high compression level.
  • Extreme: use this option to set an extreme compression level.

Default: Auto.

VBRBackupCopyJobCompressionLevel

False

Named

False

EnableDataDeduplication

Enables the data deduplication option for backup files created with a plug-in backup copy job.

If you do not provide this parameter, Veeam Backup & Replication will not decrease the size of these backup files.

SwitchParameter

False

Named

False

EnableEncryption

Enables encryption for a specific application backup policy. Veeam Backup & Replication will encrypt the data that is passed between backup infrastructure components on the source and target side.

SwitchParameter

False

Named

False

EncryptionKey

Creates an encryption key for the specified application backup policy.

Accepts the VBREncryptionKey object. To define this object, run the Get-VBREncryptionKey cmdlet.

VBREncryptionKey

False

Named

False

KMSServer

Specifies KMS servers added to the Veeam Backup & Replication console. The cmdlet will decrypt data encrypted by this server.

Accepts the VBRKMSServer object. To create this object, run the Get-VBRKMSServer cmdlet.

VBRKMSServer

False

Named

False

Options

Specifies optimization settings for plug-in backup copy jobs. The cmdlet will modify these settings.

Accepts the VBRPluginCopyJobStorageOptions object. To create this object, run the New-VBRPluginCopyJobStorageOptions cmdlet.

VBRPluginCopyJobStorageOptions

True

Named

True (ByValue)

StorageOptimizationType

Specifies the type of storage that you plan to use as a backup target.

  • Automatic: use this option to set the same type of storage as in the copied backup files.
  • LocalTarget: use this option for backup to SAN, DAS or local storage.
  • LocalTargetHugeBackup: use this option for Veeam Agent jobs that can produce backup files larger than 16 TB.
  • LANTarget: use this option for backup to NAS and for onsite backup.
  • WANTarget: use this option if you plan to use WAN for offsite backup.

Depending on the selected storage type, the job will use data blocks of different sizes to optimize the size of backup files.

Default: LocalTarget.

VBRBackupCopyJobStorageOptimizationType

False

Named

False

`` This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see [ Microsoft Docs](https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_commonparameters?view=powershell-7). ## Output Object The cmdlet returns the `VBRPluginCopyJobStorageOptions` object that contains optimization settings for plug-in backup copy jobs. ## Examples ::: example ### Example 1. Enabling Data Deduplication for Storage Optimization Settings of Plug-In Backup Copy Job This example shows how to enable the data deduplication option for storage optimization settings of a plug-in backup copy job. ``` $options = New-VBRPluginCopyJobStorageOptions -CompressionLevel Dedupe-friendly -StorageOptimizationType LANTarget Set-VBRPluginCopyJobStorageOptions -Options $options -EnableDataDeduplication ``` Perform the following steps: 1. Run the [`New-VBRPluginCopyJobStorageOptions`](new-vbrplugincopyjobstorageoptions.md) cmdlet. Specify the `CompressionLevel` and `StorageOptimizationType` parameter values. Save the result to the `$options` variable. 2. Run the `Set-VBRPluginCopyJobStorageOptions` cmdlet. Set the `$options` variable as the `Options` parameter value. Provide the `EnableDataDeduplication` parameter. ::: ::: example ### Example 2. Modifying Compression Level of Backup Files for Plug-In Backup Copy Job This example shows how to modify the compression level of backup files or storage optimization settings of a plug-in backup copy job. The cmdlet will change it from the dedupe-friendly to the extreme compression level. ``` $options = New-VBRPluginCopyJobStorageOptions -CompressionLevel Dedupe-friendly -StorageOptimizationType LANTarget Set-VBRPluginCopyJobStorageOptions -Options $options -CompressionLevel Extreme ``` Perform the following steps: 1. Run the [`New-VBRPluginCopyJobStorageOptions`](new-vbrplugincopyjobstorageoptions.md) cmdlet. Specify the `CompressionLevel` and `StorageOptimizationType` parameter values. Save the result to the `$options` variable. 2. Run the `Set-VBRPluginCopyJobStorageOptions` cmdlet. Set the `$options` variable as the `Options` parameter value. Set the `Extreme` option for the `CompressionLevel` parameter. ::: ## Related Commands [`New-VBRPluginCopyJobStorageOptions`](new-vbrplugincopyjobstorageoptions.md)