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: ...@@ -11,7 +11,7 @@ test:
stage: test stage: test
image: registry.git.autistici.org/ai3/docker/test/golang:master image: registry.git.autistici.org/ai3/docker/test/golang:master
script: script:
- apt-get -q update && apt-get -qy install restic lz4 - apt-get -q update && apt-get -qy install restic zstd
- run-go-test ./... - run-go-test ./...
artifacts: artifacts:
when: always when: always
......
...@@ -5,7 +5,7 @@ Maintainer: ale <ale@incal.net> ...@@ -5,7 +5,7 @@ Maintainer: ale <ale@incal.net>
Build-Depends: debhelper-compat (= 13), Build-Depends: debhelper-compat (= 13),
dh-golang, dh-golang,
golang-any (>= 1.10), golang-any (>= 1.10),
lz4, zstd,
restic restic
Standards-Version: 3.9.6 Standards-Version: 3.9.6
XS-Go-Import-Path: git.autistici.org/ai3/tools/tabacco XS-Go-Import-Path: git.autistici.org/ai3/tools/tabacco
...@@ -15,6 +15,7 @@ Architecture: any ...@@ -15,6 +15,7 @@ Architecture: any
Built-Using: ${misc:Built-Using} Built-Using: ${misc:Built-Using}
Depends: ${shlibs:Depends}, Depends: ${shlibs:Depends},
${misc:Depends} ${misc:Depends}
Recommends: zstd
Description: Backup manager for distributed systems. Description: Backup manager for distributed systems.
Backup manager for distributed systems, with a specific Backup manager for distributed systems, with a specific
focus on multi-tenant (partitioned) services. focus on multi-tenant (partitioned) services.
...@@ -22,8 +22,8 @@ type pipeHandler struct { ...@@ -22,8 +22,8 @@ type pipeHandler struct {
const ( const (
defaultCompress = false defaultCompress = false
defaultCompressCmd = "lz4c -3z - -" defaultCompressCmd = "zstd -c --rsyncable"
defaultDecompressCmd = "lz4c -d - -" defaultDecompressCmd = "zstd -dcf"
) )
func newPipeHandler(name string, params Params) (Handler, error) { 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