;;
kd)
targets+=(x2.b8.nz kw.b8.nz)
- # temporarily disabled while doing maint
- # if ping -q -c1 -w1 bo.b8.nz &>/dev/null; then
- # targets+=(bo.b8.nz)
- # else
- # targets+=(bow.b8.nz)
- # fi
+ if ping -q -c1 -w1 sy.b8.nz &>/dev/null; then
+ targets+=(sy.b8.nz)
+ else
+ targets+=(syw.b8.nz)
+ fi
;;
frodo)
# no targets
prospective_mps=(/i)
;;
*)
- prospective_mps=(/a /q)
+ prospective_mps=()
if [[ $source ]]; then
source_state="$(ssh $source cat /a/bin/bash_unpublished/source-state)"
eval "$source_state"
fi
fi
fi
+ # note: put q last just in case its specific retention options were to
+ # affect other config sections. I havent tested if that is the case.
+ prospective_mps+=(/a /q)
;;
esac
fi
snapshot_preserve 18h 14d 8w 24m
snapshot_preserve_min 2h
snapshot_dir btrbk
-
# so, total backups = ~58
target_preserve 18h 14d 8w 24m
target_preserve_min 2h
volume $vol
subvolume $sub
EOF
+ case $sub in
+ q)
+ # q has sensitive data i dont want to backup for so long
+ cat >>/etc/btrbk.conf <<EOF
+snapshot_preserve 18h 14d
+snapshot_preserve_min 2h
+snapshot_dir btrbk
+target_preserve 18h 14d
+target_preserve_min 2h
+EOF
+ ;;
+ esac
for tg in ${targets[@]}; do
# handle ipv6
if [[ $tg == *:* ]]; then