X-Git-Url: https://git.distorted.org.uk/~mdw/rsync-backup/blobdiff_plain/9f0350f99ac2b5ecb212b2c85204e13b285d30e6..340ea657349edb244b549f19edca902beee18ee9:/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 () { $now rsync-backup report + + -

rsync-backup report: $now

+

rsync-backup report: $now_dow $now

EOF } @@ -255,7 +316,10 @@ EOF html_hosttbl_fs () { case $3 in winning) link="" knil="" ;; - *) link="" knil="";; + *) + link="" + knil="" + ;; esac cat < @@ -279,19 +343,27 @@ EOF html_logdump_begin () { cat <Log tail for $1:$2 +

Log tail for $1:$2 +

EOF } html_logdump_info () { cat <$3 +
$3
EOF } html_logdump_file () { cat < +
+$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