From e116a9097958d877a7937ab3a7088bf22da96838 Mon Sep 17 00:00:00 2001 From: Matthias Bilger Date: Sat, 28 Dec 2019 23:42:02 +0100 Subject: [PATCH] use xz --- backup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backup.sh b/backup.sh index cf3fa67..b4f6d36 100755 --- a/backup.sh +++ b/backup.sh @@ -43,7 +43,7 @@ FROMSIZE=$(du -sk ${FROMPATH} | cut -f 1); CHECKPOINT=$(echo ${FROMSIZE}/50 | bc); echo "Estimated: [==================================================]"; echo -n "Progess: ["; -(tar -c --record-size=1K --checkpoint="${CHECKPOINT}" --checkpoint-action="ttyout=>" -f - "${FROMPATH}" | bzip2 > "${BACKUP_FILENAME}") || healthchck_fail "TAR Failed" +(tar -c --exclude=${BACKUP_FILENAME} --record-size=1K --checkpoint="${CHECKPOINT}" --checkpoint-action="ttyout=>" -f - "${FROMPATH}" | xz > "${BACKUP_FILENAME}") || healthchck_fail "TAR Failed" echo "]" cd / echo " done"