+ ## check if last snapshot was within an hour
+ vol=o
+ snaps=(/mnt/root/btrbk/$vol.20*)
+ now=$(date +%s)
+ maxtime=0
+ for s in ${snaps[@]}; do
+ file=${s##*/}
+ t=$(date -d $(sed -r 's/(.{4})(..)(.{5})(..)(.*)/\1-\2-\3:\4:\5/' <<<${file#$vol.}) +%s)
+ if (( t > maxtime )); then
+ maxtime=$t
+ fi
+ done
+ if (( maxtime < now - 60*60 )); then
+ chars+=("OLD-SNAPSHOT!")
+ lo -1 old-snapshot "/o snapshot older than 1 hour"
+ fi