From 0b3fe62a3ed37c0cc5021b416f2541a15594b434 Mon Sep 17 00:00:00 2001 From: Olli Graf Date: Sat, 24 Jan 2026 09:52:20 +0100 Subject: [PATCH] =?UTF-8?q?L=C3=B6schen=20nur=20noch=20bei=20Bedarf.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backupsd | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/backupsd b/backupsd index aedeabe..d3d9c46 100755 --- a/backupsd +++ b/backupsd @@ -2,7 +2,7 @@ BACKUP_REPO="/tank/Backup-Repo" TEMP_DIR="${HOME}/backup" -VERSION="2.09" +VERSION="2.10" #CMD_COMPRESS='pbzip2' CMD_COMPRESS='zstd -T0 -5' verbose=false @@ -25,6 +25,11 @@ fi cleanup() { echo "Abbruch durch User. Räume auf.." + if test -f "$FILE"; then + rm "${FILE" + fi + +if test -f "${TEMP_DIR}/${HOSTNAME}.sha256"; then rm ${TEMP_DIR}/${HOSTNAME}.sha256 ${FILE} } trap cleanup exit