mirror of
https://github.com/cloudnative-pg/plugin-barman-cloud.git
synced 2026-01-11 21:23:12 +01:00
Reorganised the content, with a different structure, added license information and instructions for spellchecking. Closes #290 Signed-off-by: Gabriele Bartolini <gabriele.bartolini@enterprisedb.com> Signed-off-by: Marco Nenciarini <marco.nenciarini@enterprisedb.com> Co-authored-by: Marco Nenciarini <marco.nenciarini@enterprisedb.com>
1.7 KiB
1.7 KiB
| sidebar_position |
|---|
| 80 |
Compression
By default, backups and WAL files are archived uncompressed. However, the
Barman Cloud Plugin supports multiple compression algorithms via
barman-cloud-backup and barman-cloud-wal-archive, allowing you to optimize
for space, speed, or a balance of both.
Supported Compression Algorithms
bzip2gziplz4(WAL only)snappyxz(WAL only)zstd(WAL only)
Compression settings for base backups and WAL archives are configured independently. For implementation details, refer to the corresponding API definitions:
:::important Compression impacts both performance and storage efficiency. Choose the right algorithm based on your recovery time objectives (RTO), storage capacity, and network throughput. :::
Compression Benchmark (on MinIO)
| Compression | Backup Time (ms) | Restore Time (ms) | Uncompressed Size (MB) | Compressed Size (MB) | Ratio |
|---|---|---|---|---|---|
| None | 10,927 | 7,553 | 395 | 395 | 1.0:1 |
| bzip2 | 25,404 | 13,886 | 395 | 67 | 5.9:1 |
| gzip | 116,281 | 3,077 | 395 | 91 | 4.3:1 |
| snappy | 8,134 | 8,341 | 395 | 166 | 2.4:1 |