summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbackup.sh9
1 files changed, 1 insertions, 8 deletions
diff --git a/backup.sh b/backup.sh
index 6666527..eef5cc3 100755
--- a/backup.sh
+++ b/backup.sh
@@ -17,7 +17,7 @@ ADMIN='admin@example.org'
REPO='/srv/borg'
MARIADB_BACKUP_DIR='/var/local/mariadb_export'
-# create full backup for mariadb to ensure consistent state
+# create full backup for mariadb to ensure consistent state (optional)
rm -rf ${MARIADB_BACKUP_DIR}
mkdir -p ${MARIADB_BACKUP_DIR}
chmod 700 ${MARIADB_BACKUP_DIR}
@@ -60,12 +60,5 @@ then
exit 1
fi
-# reduce repository disk usage by optimizing the repository storage
-if ! borg compact "${REPO}"
-then
- echo "❌ Backup: borg compact failed on ${HOST}." | go-sendxmpp "${ADMIN}"
- exit 1
-fi
-
# inform admin about success if not exited before
echo "✅ System backup succeeded on ${HOST}." | go-sendxmpp "${ADMIN}"