## begin check on btrbk
now=$(date +%s)
age_limit_sec=$(( 60 * 60 * 50 )) # 50 hours
-for vol in {root,boot}_ubuntubionic; do
- snaps=(/mnt/r7/amy/btrbk/${vol}.20*)
+for prefix in root boot; do
+ vol=${prefix}_ubuntubionic
+ snaps=(/mnt/r7/amy/$prefix/btrbk/${vol}.20*)
if [[ ! ${snaps[*]} ]]; then
- err no snapshots starting with /mnt/r7/amy/btrbk/${vol}_ubuntubionic.20
+ err no snapshots starting with /mnt/r7/amy/$prefix/btrbk/${vol}.20
break
fi