Commit ceea0543ed527bc506239965cd4693d44191d0b8

Thomas de Grivel 2023-04-21T06:30:57

backup_home: subdirs

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