Commit efd61830e8dec6b4f42ce4e9d7088d70b2c696f5

Thomas de Grivel 2024-06-30T10:16:39

backup_home

diff --git a/bin/backup_home b/bin/backup_home
index 82c4e9b..98c3202 100755
--- a/bin/backup_home
+++ b/bin/backup_home
@@ -3,17 +3,25 @@
 HOSTS=
 
 # s.kmx.io
+HOSTS="$HOSTS s.kmx.io"
 #HOSTS="$HOSTS bim reed twice"
 
 # s.kmx.io sparc64
-#HOSTS="$HOSTS neutron proton"
+HOSTS="$HOSTS neutron"
+#HOSTS="$HOSTS proton"
 
 # kmx.io remote
 HOSTS="$HOSTS oaa os vuchil vulon vusea vusing"
 
+V=
+if [ "x$1" = "x-v" ]; then
+    V=P
+    shift
+fi
+
 PATHS="$@"
 if [ "x$PATHS" = "x" ]; then
-    PATHS="Documents Pictures/thodg c/thodg common-lisp/thodg config"
+    PATHS="Documents Pictures c/thodg common-lisp/thodg config"
     PATHS="$PATHS erlang/thodg kmx.io mathematics patrice ports"
     PATHS="$PATHS ruby/thodg txt/thodg"
 fi
@@ -24,11 +32,13 @@ run () {
 }
 
 cd
-for P in $PATHS; do
-    run rsync -a --delete-before "$P" s86pro:/sdcard/dx/"$(dirname "$P")/"
-done
+
+#for P in $PATHS; do
+#    run rsync -a$V --delete-before "$P" s86pro:/sdcard/dx/"$(dirname "$P")/"
+#done
+
 for HOST in $HOSTS; do
     for P in $PATHS; do
-        run rsync -a --delete-before "$P" "$HOST":"$(dirname "$P")/"
+        run rsync -a$V --delete-before "$P" "$HOST":"$(dirname "$P")/"
     done
 done