Set-VBRStorageOptions
Short Description
Modifies storage optimization settings for Veeam Agent backup jobs.
Product Edition: Community, Standard, Enterprise, Enterprise Plus, Veeam Universal License
Syntax
|
Set-VBRStorageOptions -Options <VBRStorageOptions> [-CompressionLevel <VBRCompressionLevel>] [-StorageOptimizationType <VBRStorageOptimizationType>] [-EnableEncryption] [-EncryptionKey <VBREncryptionKey>] [-KMSServer <VBRKMSServer>] [<CommonParameters>] |
Detailed Description
This cmdlet modifies storage optimization settings that you can apply to Veeam Agent backup jobs. You can modify the following settings for the storage:
- Data compression settings
- Data optimization settings
- Encryption settings
Veeam Backup & Replication will apply the settings to new backups during the next Veeam Agent backup job run. The new settings will not modify previously created backups.
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 the compression level for the backup:
|
|
False |
Named |
False |
|
EnableEncryption |
Enables the option for the Veeam Agent backup job to encrypt the backup data. |
|
False |
Named |
False |
|
EncryptionKey |
For the Specifies the encryption key that you want to use to encrypt the data.
Accepts the |
|
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 |
False |
Named |
False |
|
|
Options |
Specifies storage options that you want to modify. Accepts VBRStorageOptions type. |
|
True |
Named |
True (ByValue) |
|
StorageOptimizationType |
Specifies the type of the storage that you plan to use as a backup target.
Depending on the selected storage type, the job will use data blocks of different size to optimize the size of backup files. |
|
False |
Named |
False |
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see Microsoft Docs.
Output Object
This cmdlet returns the VBRStorageOptions object that contains storage optimization settings for backup jobs.
Examples
Changing Data Compression and Storage Optimization Settings
This example shows how to specify data compression and storage optimization settings for a Veeam Agent backup job. The job with these settings will run as follows:
- Veeam Backup & Replication will change the optimization type to use WAN for offsite backup.
- Veeam Backup & Replication will change the compression level to dedupe-friendly.
|
$job = Get-VBRComputerBackupJob -Name "AgentBackupJob" $options = New-VBRStorageOptions -CompressionLevel Optimal -StorageOptimizationType LocalTargetHugeBackup $newoptions = Set-VBRStorageOptions -Options $options -CompressionLevel DedupeFriendly -StorageOptimizationType WANTarget Set-VBRComputerBackupJob -Job $job -StorageOptions $newoptions |
Perform the following steps:
- Run the
Get-VBRComputerBackupJobReturns Veeam Agent backup jobs and Veeam Agent backup policies. cmdlet. Specify theNameparameter value. Save the result to the$jobvariable. - Run the
New-VBRStorageOptionsDefines storage optimization settings for backup jobs. cmdlet. Specify theCompressionLevelandStorageOptimizationTypeparameter values. Save the result to the$optionsvariable. - Run the
Set-VBRStorageOptionscmdlet. Set the$optionsvariable as theOptionsparameter value. Specify theCompressionLevelandStorageOptimizationTypeparameter values. Save the result to the$newoptionsvariable. - Run the
Set-VBRComputerBackupJobModifies Veeam Agent backup jobs and Veeam Agent backup policies. cmdlet. Set the$jobvariable as theJobparameter value. Set the$newoptionsvariable as theStorageOptionsparameter value.
Related Commands
Get-VBRComputerBackupJobReturns Veeam Agent backup jobs and Veeam Agent backup policies.New-VBRStorageOptionsDefines storage optimization settings for backup jobs.Set-VBRComputerBackupJobModifies Veeam Agent backup jobs and Veeam Agent backup policies.