5
0
mirror of git://git.proxmox.com/git/pve-docs.git synced 2025-01-08 21:17:52 +03:00

add section about backup compression algorithms

as a short description about the different algorithms in use by vzdump.

Signed-off-by: Alwin Antreich <a.antreich@proxmox.com>
This commit is contained in:
Alwin Antreich 2020-05-07 16:40:13 +02:00 committed by Thomas Lamprecht
parent a7dca4d1df
commit 4edb84ec94

View File

@ -147,6 +147,39 @@ That way it is possible to store several backup in the same
directory. The parameter `maxfiles` can be used to specify the
maximum number of backups to keep.
Backup File Compression
-----------------------
The backup file can be compressed with one of the following algorithms: `lzo`
footnote:[LempelZivOberhumer a lossless data compression algorithm
https://en.wikipedia.org/wiki/Lempel-Ziv-Oberhumer], `gzip` footnote:[gzip -
based on the DEFLATE algorithm https://en.wikipedia.org/wiki/Gzip] or `zstd`
footnote:[Zstandard a lossless data compression algorithm
https://en.wikipedia.org/wiki/Zstandard].
Currently, Zstandard (zstd) is the fastest of these three algorithms.
Multi-threading is another advantage of zstd over lzo and gzip. Lzo and gzip
are more widely used and often installed by default.
You can install pigz footnote:[pigz - parallel implementation of gzip
https://zlib.net/pigz/] as a drop-in replacement for gzip to provide better
performance due to multi-threading. For pigz & zstd, the amount of
threads/cores can be adjusted. See the
xref:vzdump_configuration[configuration options] below.
The extension of the backup file name can usually be used to determine which
compression algorithm has been used to create the backup.
|===
|.zst | Zstandard (zstd) compression
|.gz or .tgz | gzip compression
|.lzo | lzo compression
|===
If the backup file name doesn't end with one of the above file extensions, then
it was not compressed by vzdump.
[[vzdump_restore]]
Restore
-------
@ -203,7 +236,7 @@ per configured storage, this can be done with:
# pvesm set STORAGEID --bwlimit restore=KIBs
----
[[vzdump_configuration]]
Configuration
-------------