X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/rsync-backup/blobdiff_plain/9f0350f99ac2b5ecb212b2c85204e13b285d30e6..HEAD:/check-bkp-status.in diff --git a/check-bkp-status.in b/check-bkp-status.in index 15afadd..75ddf60 100644 --- a/check-bkp-status.in +++ b/check-bkp-status.in @@ -153,6 +153,7 @@ html_header () {
+$3 EOF cat "$3" cat <- Checked at $now $now_time. -
rsync-backup $VERSION; © 2014 Mark Wooding + Checked at $now $now_time
+ rsync-backup $VERSION; © 2014 Mark Wooding @@ -335,7 +407,7 @@ backup () { case $host:$fs in $p) matchp=t; break ;; esac done case $matchp in nil) return ;; esac - when=$(sqlite3 $INDEXDB \ + when=$(sqlite3 -batch -list -separator \| -noheader $INDEXDB \ "SELECT MAX(date) FROM idx WHERE host = '$host' AND fs = '$fs';") case $when in "") @@ -433,6 +505,7 @@ esac now=$(date +"%Y-%m-%d") now_time=$(date +"%H:%M:%S %z") +now_dow=$(date +"%A") now_jdn=$(julian $now) . "$conf" failure_logs