X-Git-Url: https://iankelling.org/git/?p=distro-setup;a=blobdiff_plain;f=btrbk-run;h=6908018f61fbafda774339f4f299699e479a388b;hp=a5fd62a45c54bbbd592d570654c2ceca13fa3c9c;hb=45bb8be590318ef8f34df0d22aa9b54a83adc42e;hpb=3c86472e219aaf3c97b1f878b4a818644b282aba diff --git a/btrbk-run b/btrbk-run index a5fd62a..6908018 100644 --- a/btrbk-run +++ b/btrbk-run @@ -255,10 +255,10 @@ else sshable=() sshfail=() - min_idle=$((60 * 15)) + min_idle_ms=$((1000 * 60 * 15)) for h in ${targets[@]}; do if zone=$(ssh root@$h "mkdir -p /mnt/root/btrbk && date +%z"); then - if $cron && xidle=$(ssh iank@$h DISPLAY=:0 xprintidle) && [[ $xidle && $xidle -lt $min_idle ]]; then + if $cron && DISPLAY=:0 xprintidle; then # This is a separate ssh because xprintidle can fail and thats ok. # Ignore this host. i sometimes use a non-main machine for testing or web browsing, knowing that # everything will be wiped by the next backup, but I dont want it to happen as Im using