Add timestamped Pushover start/end messages
This commit is contained in:
@@ -45,6 +45,7 @@ TOMEDO_FILES_EXCLUDES="${TOMEDO_DEST_ROOT}/files.excludes"
|
||||
# Hilfsfunktionen
|
||||
# -----------------------------
|
||||
log() { echo "[$(date +'%F %T')] $*"; }
|
||||
ts_now() { date +'%F %T'; }
|
||||
|
||||
send_pushover() {
|
||||
local message="$1"
|
||||
@@ -287,10 +288,12 @@ need_root
|
||||
check_deps
|
||||
acquire_lock
|
||||
|
||||
send_pushover "Backup START auf $(hostname) um $(ts_now)."
|
||||
|
||||
bringup_wg
|
||||
mount_cifs
|
||||
|
||||
rsync_tomedo_backup
|
||||
|
||||
log "== Fertig. =="
|
||||
send_pushover "Backup erfolgreich auf $(hostname) abgeschlossen."
|
||||
send_pushover "Backup ENDE auf $(hostname) um $(ts_now)."
|
||||
|
||||
Reference in New Issue
Block a user