Löschen des Dump Files nach Kompression.

This commit is contained in:
Olli Graf
2025-10-04 10:28:40 +02:00
parent 0541c5dc52
commit f1872ca379

View File

@@ -2,7 +2,7 @@
BACKUP_REPO="/tank/Backup-Repo" BACKUP_REPO="/tank/Backup-Repo"
TEMP_DIR="${HOME}/backup" TEMP_DIR="${HOME}/backup"
VERSION="2.06" VERSION="2.07"
#CMD_COMPRESS='pbzip2' #CMD_COMPRESS='pbzip2'
CMD_COMPRESS='zstd -T0 -5' CMD_COMPRESS='zstd -T0 -5'
verbose=false verbose=false
@@ -52,7 +52,7 @@ fi
echo "compressing image with ${CMD_COMPRESS}" echo "compressing image with ${CMD_COMPRESS}"
${CMD_COMPRESS} ${FILE} ${CMD_COMPRESS} ${FILE} && rm ${FILE}
REPO_DIR="${BACKUP_REPO}/${HOSTNAME}" REPO_DIR="${BACKUP_REPO}/${HOSTNAME}"
echo "moving compressed image to repo" echo "moving compressed image to repo"
if [ ! -d "${REPO_DIR}" ]; then mkdir "${REPO_DIR}"; fi if [ ! -d "${REPO_DIR}" ]; then mkdir "${REPO_DIR}"; fi