targets+=(x3wg.b8.nz)
fi
fi
- for h in frodo kd; do
+ # temporarily disabled while doing recovery
+# for h in frodo kd; do
+ for h in kd; do
if [[ $HOSTNAME == "$h" ]]; then
continue
fi
##### end command line parsing ########
+# todo: this has a timing problem, since btrbk.timer could activate the service after this check.
if ! $fast && [[ $source ]]; then
if [[ $(ssh $source ps --no-headers -o comm 1) == systemd ]]; then
status=$(ssh $source systemctl is-active btrbk.service) || : # normally returns 3
if [[ $source ]]; then
m mount-latest-subvol "${subvols[@]}"
else
- m /a/exe/mount-latest-remote ${targets[@]}
+ for tg in ${targets[@]}; do
+ m /a/exe/mount-latest-remote "$tg" "${subvols[@]}" || ret=$?
+ done
fi
if [[ $ret == 0 ]]; then