Skip to content

Commit

Permalink
Do not use any compression
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrik Peng committed Sep 2, 2018
1 parent 026832a commit 1ca8030
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions volume-backup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ backup() {
mkdir -p `dirname /backup/$ARCHIVE`
fi

tar -cjf $ARCHIVE_PATH -C /volume ./
tar -cf $ARCHIVE_PATH -C /volume ./
}

restore() {
Expand All @@ -22,7 +22,7 @@ restore() {
fi

rm -rf /volume/* /volume/..?* /volume/.[!.]*
tar -C /volume/ -xjf $ARCHIVE_PATH
tar -C /volume/ -xf $ARCHIVE_PATH
}

# Needed because sometimes pty is not ready when executing docker-compose run
Expand All @@ -40,7 +40,7 @@ if [ "$2" == "-" ]; then
ARCHIVE=$2
ARCHIVE_PATH=$ARCHIVE
else
ARCHIVE=${2%%.tar.bz2}.tar.bz2
ARCHIVE=${2%%.tar}.tar
ARCHIVE_PATH=/backup/$ARCHIVE
fi

Expand Down

0 comments on commit 1ca8030

Please sign in to comment.