Skip to content

Commit

Permalink
add zstd (#36)
Browse files Browse the repository at this point in the history
  • Loading branch information
ksurl authored Mar 14, 2021
1 parent f8b07e8 commit 0cec0d7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM alpine

RUN apk update && apk add --no-cache dumb-init xz tar
RUN apk update && apk add --no-cache dumb-init xz tar zstd

COPY volume-backup.sh /

Expand Down
4 changes: 4 additions & 0 deletions volume-backup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,10 @@ gz)
TAROPTS="$TAROPTS -z"
EXTENSION=.tar.gz
;;
zstd)
TAROPTS="$TAROPTS -I zstd"
EXTENSION=.tar.zstd
;;
none|0)
EXTENSION=.tar
;;
Expand Down

0 comments on commit 0cec0d7

Please sign in to comment.