Add failure logging/email notification in backup.sh; harden /opt/backup perms

This commit is contained in:
Christoph Haas 2026-09-19 22:20:31 +00:00
parent d06a9eac7d
commit 68aae4715d
5 changed files with 57 additions and 5 deletions

View file

@ -27,3 +27,6 @@ ENCRYPTION_KEY_FILE="/opt/backup/encryption-key.pem"
# --- Local hostname (used as backup-id and archive-name prefix) ---
HOSTNAME="$(hostname)"
# --- Failure notification (email sent on backup failure; empty = disabled) ---
NOTIFY_EMAIL="admin@example.com"