From: Chris Koeritz Date: Sun, 17 Dec 2017 14:54:42 +0000 (-0500) Subject: nice generalization for raw synch X-Git-Tag: 2.140.106^2~22 X-Git-Url: https://feistymeow.org/gitweb/?a=commitdiff_plain;h=c273a93e487579311d6a40bb09342b9df8b9a195;p=feisty_meow.git nice generalization for raw synch now takes a hostname. --- diff --git a/scripts/customize/fred/scripts/archival/raw_surya_synch.sh b/scripts/customize/fred/scripts/archival/raw_surya_synch.sh deleted file mode 100644 index 57b9472b..00000000 --- a/scripts/customize/fred/scripts/archival/raw_surya_synch.sh +++ /dev/null @@ -1,15 +0,0 @@ -#!/bin/bash - -source "$FEISTY_MEOW_SCRIPTS/core/launch_feisty_meow.sh" - -echo "Updating walrus and musix from surya: raw mode without syncthing!" -echo - -for currdir in basement imaginations musix walrus; do - sep - echo "synching $currdir folder..." - rsync -avz surya:/z/$currdir/* /z/$currdir/ -done - -sep - diff --git a/scripts/customize/fred/scripts/archival/raw_synch.sh b/scripts/customize/fred/scripts/archival/raw_synch.sh new file mode 100644 index 00000000..9a69b9c1 --- /dev/null +++ b/scripts/customize/fred/scripts/archival/raw_synch.sh @@ -0,0 +1,21 @@ +#!/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 walrus; do + sep + echo "synching $currdir folder from $synch_host..." + rsync -avz "$synch_host":/z/$currdir/* /z/$currdir/ +done + +sep +