diff --git a/_helpers/backup.sh b/_helpers/backup.sh index e7d4160..0a07ee1 100755 --- a/_helpers/backup.sh +++ b/_helpers/backup.sh @@ -1,6 +1,6 @@ #! /bin/bash -eu -BACKUP_FILENAME="backup-$(date '+%Y%m%d').tar.gz" +BACKUP_FILENAME="backup-$(date '+%Y%m%d').tar" PROJ_PATH="$(readlink -f "$(cd "$(dirname "$(readlink -f $0)")" && pwd)")" cd "${PROJ_PATH}/.." @@ -11,6 +11,6 @@ USR_UID="$1" shift docker-compose down -tar -czvf "${BACKUP_FILENAME}" "$@" +tar -cvf "${BACKUP_FILENAME}" "$@" chown "${USR_GID}:${USR_UID}" "${BACKUP_FILENAME}" docker-compose up -d