Compare commits

...

2 Commits

Author SHA1 Message Date
9b358ddee1 Merge remote-tracking branch 'refs/remotes/origin/master'
All checks were successful
continuous-integration/drone/push Build is passing
2019-12-28 11:30:35 +01:00
601f02e588 progress for tar test 2019-12-28 11:29:32 +01:00

View File

@@ -38,7 +38,13 @@ healthchck_ok(){
healthchck_start "Starting Backup" healthchck_start "Starting Backup"
cd /backup cd /backup
echo "make archive" echo "make archive"
tar -c --checkpoint=.1000 ${TAR_PARAM} ${TAR_EXTRA_PARAM} -f ~/$BACKUP_FILENAME ./* || healthchck_fail "TAR Failed" FROMPATH='./*'
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"
echo "]"
cd / cd /
echo " done" echo " done"