From: Chris Koeritz Date: Sun, 2 Oct 2016 22:40:15 +0000 (-0400) Subject: added special case for curie host, since it doesn't do the normal full synch. X-Git-Tag: 2.140.90~404 X-Git-Url: https://feistymeow.org/gitweb/?a=commitdiff_plain;h=1df244a1d829a13191e3be17a8177476aa3ab5cb;p=feisty_meow.git added special case for curie host, since it doesn't do the normal full synch. --- 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/