Configuring Compression Settings
If compression is enabled, Veeam Plug-In compresses backup data using the LZ4 compression algorithm by default. Depending on the Veeam Plug-In operation mode, you can enable or disable compression in the following way:
- In the managed mode, you can enable or disable compression only in the application backup policy settings.
- In the standalone mode, you can enable or disable compression at the Backup Options step of the Back Up Database wizard or with the --use_compression parameter of the backup command.
If compression is enabled, Veeam Plug-In uses the compression level specified in the configuration file. If the compression attribute is set to NoCompression, Veeam Plug-In uses the Lz4 compression level.
|
Note |
|
Veeam Backup & Replication does not support data compression for databases encrypted with transparent data encryption (TDE). |
To change the compression level in either operation mode, do the following:
- Open the %PROGRAMFILES%\Veeam\Plugins\Microsoft SQL\veeam_config.xml file with a text editor.
- In the veeam_config.xml file, find the <AgentParams /> line and add the compression attribute:
|
<AgentParams compression="<compression_level>" /> |
where <compression_level> is the compression level for the backup job.
For example:
|
<AgentParams compression="Zstd9" /> |
For the compression attribute, you can specify one of the following values:
|
Value |
Description |
|---|---|
|
NoCompression |
No compression. This value is recommended if you plan to store backup files on storage devices supporting hardware compression and deduplication. Disabled compression can reduce performance due to the increased amount of data to be transferred. |
|
Rle |
This value enables run-length encoding (RLE) compression. |
|
Lz4 |
This value is used by default. It provides the best ratio between compression and performance, the lowest CPU usage and the fastest restore. |
|
Zstd3 |
This value provides up to 60% of additional data reduction over the Lz4 value at the cost of 2x higher CPU usage and 2x slower restore. |
|
Zstd9 |
This value provides up to 33% of additional data reduction over the Zstd3 value at the cost of 5x higher CPU usage. |
|
Tip |
|
- Save the veeam_config.xml file.