added extra parameters for tar

This commit is contained in:
2019-10-12 15:30:01 +02:00
parent 36398733e0
commit a064248000
2 changed files with 4 additions and 1 deletions

View File

@@ -32,7 +32,7 @@ healthchck_ok(){
cd /backup
echo "make archive"
tar -c --checkpoint=.1000 ${TAR_PARAM} -f ~/$BACKUP_FILENAME ./* || healthchck_fail
tar -c --checkpoint=.1000 ${TAR_PARAM} ${TAR_EXTRA_PARAM} -f ~/$BACKUP_FILENAME ./* || healthchck_fail
cd /
echo " done"

3
run.sh
View File

@@ -3,6 +3,9 @@
# Import GPG public keys
gpg --import /keys/*
if [ ${RUN_NOW:-0} -ne 0 ]; then
/backup.sh
fi
# Create and install crontab file
echo "$CRON_INTERVAL /backup.sh" >> /backup.cron