Commit 72900ab3264aa552d5b5e739835bb2296283be08

Thomas de Grivel 2023-04-22T18:37:18

root FFS

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/bin/backup_home_ b/bin/backup_home_
index 946e2ff..7117bc7 100644
--- a/bin/backup_home_
+++ b/bin/backup_home_
@@ -14,5 +14,7 @@ run () {
 
 cd
 for HOST in $HOSTS; do
-    run rsync -a "$PATHS" root@"$HOST":
+    for P in $PATHS; do
+        run rsync -a "$P" root@"$HOST":"$(dirname "$P")/"
+    done
 done