added special case for curie host, since it doesn't do the normal full synch.
authorChris Koeritz <fred@gruntose.com>
Sun, 2 Oct 2016 22:40:15 +0000 (18:40 -0400)
committerChris Koeritz <fred@gruntose.com>
Sun, 2 Oct 2016 22:40:15 +0000 (18:40 -0400)
customizing/fred/scripts/synch_archives_from_surya.sh

index e13dc3ca8432b7d3baea24432a0a3aadd72e7053..ceac4bfee9d0148c68a1ced11673354fa5e05da0 100644 (file)
@@ -1,6 +1,16 @@
 
+# curie is the source for musix and also has limited space for walruses,
+# so we check for that being our host here.
+hostname -f 2>&1 | grep -i curie &>/dev/null
+if [ $? -eq 0 ]; then
+  # this name has curie in it, so we're probably on there.
+  echo "Updating with special case for curie from surya"
+  rsync -avz surya:/z/walrus/media/pictures/* /z/walrus/media/pictures/
+  rsync -avz surya:/z/walrus/media/sounds/* /z/walrus/media/sounds/
+else
+  echo "Updating standard host from surya"
+  rsync -avz surya:/z/walrus/* /z/walrus/
+  rsync -avz surya:/z/musix/* /z/musix/
+fi
 
 
-rsync -avz surya:/z/walrus/* /z/walrus/
-
-rsync -avz surya:/z/musix/* /z/musix/