use xz
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2019-12-28 23:42:02 +01:00
parent 71abb6ab65
commit e116a90979

View File

@@ -43,7 +43,7 @@ FROMSIZE=$(du -sk ${FROMPATH} | cut -f 1);
CHECKPOINT=$(echo ${FROMSIZE}/50 | bc); CHECKPOINT=$(echo ${FROMSIZE}/50 | bc);
echo "Estimated: [==================================================]"; echo "Estimated: [==================================================]";
echo -n "Progess: ["; 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 "]" echo "]"
cd / cd /
echo " done" echo " done"