From: Chris Koeritz Date: Mon, 20 May 2019 19:22:41 +0000 (-0400) Subject: Merge branch 'master' of feistymeow.org:feisty_meow X-Git-Tag: 2.140.116~1 X-Git-Url: https://feistymeow.org/gitweb/?a=commitdiff_plain;h=4bee7d64868d89a1a0506136f284d3f91aeabc24;p=feisty_meow.git Merge branch 'master' of feistymeow.org:feisty_meow fixing weird issues in raw_synch state --- 4bee7d64868d89a1a0506136f284d3f91aeabc24 diff --cc scripts/archival/raw_synch.sh index 17c4b9b7,00000000..e0cebc6e mode 100644,000000..100644 --- a/scripts/archival/raw_synch.sh +++ b/scripts/archival/raw_synch.sh @@@ -1,23 -1,0 +1,24 @@@ +#!/bin/bash + +source "$FEISTY_MEOW_SCRIPTS/core/launch_feisty_meow.sh" + +synch_host="$1"; shift +if [ -z "$synch_host" ]; then + echo This script requires a hostname where we expect to find archives. + exit 1 +fi + +echo "Updating our local archives from $synch_host: this is very raw mode, without syncthing!" | splitter +echo + +for currdir in basement imaginations musix toaster walrus; do - if [ -d /z/$currdir ]; then ++ if [ -d "/z/$currdir" ]; then + sep + echo "synching $currdir folder from $synch_host..." + rsync -avz "$synch_host":/z/$currdir/* /z/$currdir/ ++ continue_on_error synching with $currdir from remote host. + fi +done + +sep +