Implemented tar+bz2 compression + unit tests for it.

This commit is contained in:
eleksir
2026-03-27 21:28:27 +03:00
parent 05c9eb6669
commit 5226688836
12 changed files with 247 additions and 29 deletions

View File

@@ -5,9 +5,10 @@
* TODO Backer Tasks
** TODO Consider different compression algorithms
- [ ] Evaluate alternatives to gzip: bz2, xz, lzo, lz4
- [ ] lz4 for speed, xz for better compression
- [ ] Add compression_algorithm config option
- [X] Evaluate alternatives to gzip: bz2, xz, lzo, lz4
- CANCELLED lzo. It has cgo implementaion which depends in liblzo, and native lid that does not support streaming.
- [X] Implemented bzip2 as alternative (pure Go, via github.com/dsnet/compress)
- [X] Add compression_algorithm config option
** DONE Configurable filename prefix
- [X] Move "backup" prefix to config (currently hardcoded in newServer.go)