Skip to content
Snippets Groups Projects
Commit 8aff8b75 authored by ale's avatar ale
Browse files

Merge branch 'zstd' into 'master'

Switch default compression to zstd

Closes #10

See merge request !28
parents 828dee6d b78a9986
No related branches found
No related tags found
1 merge request!28Switch default compression to zstd
......@@ -11,7 +11,7 @@ test:
stage: test
image: registry.git.autistici.org/ai3/docker/test/golang:master
script:
- apt-get -q update && apt-get -qy install restic lz4
- apt-get -q update && apt-get -qy install restic zstd
- run-go-test ./...
artifacts:
when: always
......
......@@ -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) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment