## begin check on btrbk
-now=$(date +%s)
age_limit_sec=$(( 60 * 60 * 50 )) # 50 hours
for prefix in root boot; do
vol=${prefix}_ubuntubionic
err "could not find latest snapshot for $svp among ${snaps[*]}"
exit 1
fi
- if (( last_snap_sec < now - age_limit_sec )); then
+ if (( last_snap_sec < EPOCHSECONDS - age_limit_sec )); then
err vol $vol last backup older than 50 hours: $last_snap
fi
done