diff options
Diffstat (limited to 'backup.sh')
-rwxr-xr-x | backup.sh | 9 |
1 files changed, 1 insertions, 8 deletions
@@ -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}" |