Merge branch 'master' of feistymeow.org:feisty_meow
[feisty_meow.git] / scripts / archival / raw_synch.sh
1 #!/bin/bash
2
3 source "$FEISTY_MEOW_SCRIPTS/core/launch_feisty_meow.sh"
4
5 synch_host="$1"; shift
6 if [ -z "$synch_host" ]; then
7   echo This script requires a hostname where we expect to find archives.
8   exit 1
9 fi
10
11 echo "Updating our local archives from $synch_host: this is very raw mode, without syncthing!" | splitter
12 echo
13
14 for currdir in basement imaginations musix toaster walrus; do
15   if [ -d "/z/$currdir" ]; then
16     sep
17     echo "synching $currdir folder from $synch_host..."
18     rsync -avz "$synch_host":/z/$currdir/* /z/$currdir/
19     continue_on_error synching with $currdir from remote host.
20   fi
21 done
22
23 sep
24