diff --git a/backupsd b/backupsd index 158cd9c..57dd5b1 100755 --- a/backupsd +++ b/backupsd @@ -2,7 +2,7 @@ BACKUP_REPO="/tank/Backup-Repo" TEMP_DIR="${HOME}/backup" -VERSION="2.07" +VERSION="2.08" #CMD_COMPRESS='pbzip2' CMD_COMPRESS='zstd -T0 -5' verbose=false @@ -23,6 +23,12 @@ then exit 2 fi +cleanup() { + echo "Abbruch durch User. Räume auf.." + rm ${TEMP_DIR}/${HOSTNAME}.sha256 ${FILE} +} +trap cleanup exit + function isolate_checksum() { checksum=($(echo ${1} | tr " " "\n"[0]))