„backup.sh“ ändern
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2019-10-16 04:56:25 +00:00
parent 4aa40c568e
commit 8d1347a34c

View File

@@ -23,12 +23,20 @@ healthchck_fail(){
fi
}
healthchck_start(){
if [ -n $HEALTHCHECK_URL ]; then
curl --retry 3 $HEALTHCHECK_URL/start
exit 1
fi
}
healthchck_ok(){
if [ -n $HEALTHCHECK_URL ]; then
curl --retry 3 $HEALTHCHECK_URL
fi
}
healthchck_start
cd /backup
echo "make archive"
tar -c --checkpoint=.1000 ${TAR_PARAM} ${TAR_EXTRA_PARAM} -f ~/$BACKUP_FILENAME ./* || healthchck_fail