fix path, minor docs
[distro-setup] / btrbk-run
index f768ad4ffff561c65bf1d67ac3d8d9a02a9b74d6..231a239ef290cf30ae121c70d53b86ecbec395ef 100644 (file)
--- a/btrbk-run
+++ b/btrbk-run
@@ -227,6 +227,8 @@ if [[ ! -v targets && ! $source ]]; then
           if [[ $MAIL_HOST == x3 ]]; then
             kd_spread=true
           else
+            # x3 was the mail host, but it moved to some other machine
+            # without updating us yet.
             echo "MAIL_HOST=$MAIL_HOST, nothing to do"
             mexit 0
           fi
@@ -299,11 +301,7 @@ if [[ ! -v targets && ! $source ]]; then
           fi
         done
       elif $at_work; then
-        if ping -q -c1 -w1 iank.vpn.office.fsf.org &>/dev/null; then
-          targets+=(iank.vpn.office.fsf.org)
-        else
-          targets+=(i.b8.nz)
-        fi
+        targets+=(i.b8.nz)
         for h in x2 x3 kw; do
           if [[ $HOSTNAME == "$h" ]]; then
             continue
@@ -510,7 +508,7 @@ else
       else
         locked=true
       fi
-      if $locked; then
+      if $locked; then
         # 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
@@ -563,11 +561,11 @@ snapshot_create onchange
 # if one disk had less space.
 # for now, keeping them equal.
 snapshot_preserve $std_preserve
-snapshot_preserve_min 2h
+snapshot_preserve_min 6h
 snapshot_dir btrbk
 # so, total backups = ~58
 target_preserve $std_preserve
-target_preserve_min 2h
+target_preserve_min 6h
 
 # i tried this when investigating: clone no source subvolume found error
 #incremental_prefs sro:1 srn:1 sao san:1 aro:1 arn:1
@@ -702,8 +700,7 @@ fi
 
 if [[ $ret == 0 ]]; then
   for tg in ${targets[@]}; do
-    :
-    #ssh root@$tg /a/exe/mail-backup-clean
+    ssh root@$tg /usr/local/bin/mail-backup-clean
   done
 fi