currently only one user is supported on remote
authorChris Koeritz <fred@gruntose.com>
Fri, 22 May 2020 22:05:08 +0000 (18:05 -0400)
committerChris Koeritz <fred@gruntose.com>
Fri, 22 May 2020 22:05:08 +0000 (18:05 -0400)
this is a very fred related command and probably needs to move into the custom area.
or we could redefine the script using variables for the:
 + list of z folders to synch
 + actual location of /z
 + user name that must be used to get on that host

scripts/archival/raw_synch.sh

index e0cebc6e8a172a5610fb0a6e740655fefdfbdb32..2b0a0c1cf3c9d16a5471bc8a14b22b1a78bdfde5 100644 (file)
@@ -15,7 +15,7 @@ for currdir in basement imaginations musix toaster walrus; do
   if [ -d "/z/$currdir" ]; then
     sep
     echo "synching $currdir folder from $synch_host..."
-    rsync -avz "$synch_host":/z/$currdir/* /z/$currdir/
+    rsync -avz "fred@${synch_host}:/z/$currdir"/* /z/$currdir/
     continue_on_error synching with $currdir from remote host.
   fi
 done