From 1df244a1d829a13191e3be17a8177476aa3ab5cb Mon Sep 17 00:00:00 2001 From: Chris Koeritz Date: Sun, 2 Oct 2016 18:40:15 -0400 Subject: [PATCH] added special case for curie host, since it doesn't do the normal full synch. --- .../fred/scripts/synch_archives_from_surya.sh | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/customizing/fred/scripts/synch_archives_from_surya.sh b/customizing/fred/scripts/synch_archives_from_surya.sh index e13dc3ca..ceac4bfe 100644 --- a/customizing/fred/scripts/synch_archives_from_surya.sh +++ b/customizing/fred/scripts/synch_archives_from_surya.sh @@ -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/ -- 2.34.1