Add timestamped Pushover start/end on main
This commit is contained in:
@@ -84,6 +84,7 @@ CONSUME_EXT_REGEX='\.([Pp][Dd][Ff]|[Dd][Oo][Cc][Xx]?|[Xx][Ll][Ss][Xx]?|[Pp][Pp][
|
||||
# Hilfsfunktionen
|
||||
# -----------------------------
|
||||
log() { echo "[$(date +'%F %T')] $*"; }
|
||||
ts_now() { date +'%F %T'; }
|
||||
|
||||
send_pushover() {
|
||||
local message="$1"
|
||||
@@ -487,6 +488,8 @@ need_root
|
||||
check_deps
|
||||
acquire_lock
|
||||
|
||||
send_pushover "Backup START auf $(hostname) um $(ts_now)."
|
||||
|
||||
bringup_wg
|
||||
mount_cifs
|
||||
|
||||
@@ -499,4 +502,4 @@ borg_local_backup
|
||||
rsync_borg_mirror_to_cifs
|
||||
|
||||
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