17c4b9b7f6e94e888315dbbb4ae6efeb49fd935a
[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 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   fi
20 done
21
22 sep
23