Add timestamped Pushover start/end on Tomedo branch
This commit is contained in:
@@ -93,6 +93,7 @@ TOMEDO_FILES_EXCLUDES="${TOMEDO_DEST_ROOT}/files.excludes"
|
|||||||
# Hilfsfunktionen
|
# Hilfsfunktionen
|
||||||
# -----------------------------
|
# -----------------------------
|
||||||
log() { echo "[$(date +'%F %T')] $*"; }
|
log() { echo "[$(date +'%F %T')] $*"; }
|
||||||
|
ts_now() { date +'%F %T'; }
|
||||||
|
|
||||||
send_pushover() {
|
send_pushover() {
|
||||||
local message="$1"
|
local message="$1"
|
||||||
@@ -537,6 +538,8 @@ need_root
|
|||||||
check_deps
|
check_deps
|
||||||
acquire_lock
|
acquire_lock
|
||||||
|
|
||||||
|
send_pushover "Backup START auf $(hostname) um $(ts_now)."
|
||||||
|
|
||||||
bringup_wg
|
bringup_wg
|
||||||
mount_cifs
|
mount_cifs
|
||||||
|
|
||||||
@@ -550,4 +553,4 @@ borg_local_backup
|
|||||||
rsync_borg_mirror_to_cifs
|
rsync_borg_mirror_to_cifs
|
||||||
|
|
||||||
log "== Fertig. =="
|
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