tp)
# kd disabled temporarily while its hot and i plan to work on it.
#targets=(frodo kd)
- targets=(frodo x3.b8.nz)
+ #targets=(frodo x2.b8.nz)
+ targets=(frodo)
# might not be connected to the vpn
- if timeout -s 9 10 ssh kw :; then
+ if timeout -s 9 6 ssh kw :; then
targets+=(kw)
fi
;;
kd)
targets=(frodo tp)
# might not be connected to the vpn
- if timeout -s 9 10 ssh kw :; then
+ if timeout -s 9 6 ssh kw :; then
targets+=(kw)
fi
;;
-
if ! which btrbk &>/dev/null; then
die "error: no btrbk binary found"
fi
for h in ${targets[@]}; do
if zone=$(ssh root@$h "mkdir -p /mnt/root/btrbk && date +%z"); then
# This is a separate ssh because xprintidle can fail and thats ok.
- if $cron && idle_ms=$(ssh $h DISPLAY=:0 xprintidle); then
+ if $cron && idle_ms=$(timeout -s 9 6 ssh $h DISPLAY=:0 xprintidle); then
if (( idle_ms < min_idle_ms )); then
# Ignore this host. i sometimes use a non-main machine for
fi
if [[ $source ]]; then
- m mount-latest-subvol $verbose_arg
+ m mount-latest-subvol
else
m /a/exe/mount-latest-remote ${targets[@]}
fi