Commit 55e31f46 authored by ale's avatar ale
Browse files

Switch default compression to zstd

The 'zstd' tool will also happily decompress lz4-encoded streams,
solving the backwards compatibility problem.
parent 828dee6d
Pipeline #24134 failed with stages
in 1 minute and 8 seconds
......@@ -5,7 +5,7 @@ Maintainer: ale <ale@incal.net>
Build-Depends: debhelper-compat (= 13),
dh-golang,
golang-any (>= 1.10),
lz4,
zstd,
restic
Standards-Version: 3.9.6
XS-Go-Import-Path: git.autistici.org/ai3/tools/tabacco
......@@ -15,6 +15,7 @@ Architecture: any
Built-Using: ${misc:Built-Using}
Depends: ${shlibs:Depends},
${misc:Depends}
Recommends: zstd
Description: Backup manager for distributed systems.
Backup manager for distributed systems, with a specific
focus on multi-tenant (partitioned) services.
......@@ -22,8 +22,8 @@ type pipeHandler struct {
const (
defaultCompress = false
defaultCompressCmd = "lz4c -3z - -"
defaultDecompressCmd = "lz4c -d - -"
defaultCompressCmd = "zstd -c --rsyncable"
defaultDecompressCmd = "zstd -dcf"
)
func newPipeHandler(name string, params Params) (Handler, error) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment