doppelte Dateilöschung entfernt.

This commit is contained in:
Olli Graf
2026-01-23 06:30:29 +01:00
parent cab9ed20e6
commit e82dc50c0f

View File

@@ -2,7 +2,7 @@
BACKUP_REPO="/tank/Backup-Repo"
TEMP_DIR="${HOME}/backup"
VERSION="2.08"
VERSION="2.09"
#CMD_COMPRESS='pbzip2'
CMD_COMPRESS='zstd -T0 -5'
verbose=false
@@ -58,7 +58,7 @@ fi
echo "compressing image with ${CMD_COMPRESS}"
${CMD_COMPRESS} ${FILE} && rm ${FILE}
${CMD_COMPRESS} ${FILE}
REPO_DIR="${BACKUP_REPO}/${HOSTNAME}"
echo "moving compressed image to repo"
if [ ! -d "${REPO_DIR}" ]; then mkdir "${REPO_DIR}"; fi
@@ -122,6 +122,4 @@ echo "FILE=${FILE}"
echo "SD-Card Backup ${VERSION}"
start_backup
echo "cleaning up..."
rm -v "${TEMP_DIR}/${HOSTNAME}.sha256"
exit 0