Merge branch 'dev' of feistymeow.org:feisty_meow into dev
[feisty_meow.git] / scripts / customize / fred / 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 walrus; do
15   sep
16   echo "synching $currdir folder from $synch_host..."
17   rsync -avz "$synch_host":/z/$currdir/* /z/$currdir/
18 done
19
20 sep
21