Implemented tar+xz compression + unit tests for it.

This commit is contained in:
eleksir
2026-03-27 23:50:27 +03:00
parent b494479128
commit 3620623321
11 changed files with 194 additions and 12 deletions

View File

@@ -9,8 +9,9 @@
- 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] Implemented zstd as alternative (pure Go, via github.com/klauspost/compress/zstd)
- [X] Implemented lz4 as alternative (pure Go, via github.com/pierrec/lz4)
- [X] Implemented xz as alternative (pure Go, via github.com/ulikunitz/xz)
- [X] Add compression_algorithm config option
- Note: xz and lz4 can be added later if needed (pure Go libs available)
** DONE Configurable filename prefix
- [X] Move "backup" prefix to config (currently hardcoded in newServer.go)