From c273a93e487579311d6a40bb09342b9df8b9a195 Mon Sep 17 00:00:00 2001 From: Chris Koeritz Date: Sun, 17 Dec 2017 09:54:42 -0500 Subject: [PATCH] nice generalization for raw synch now takes a hostname. --- .../fred/scripts/archival/raw_surya_synch.sh | 15 ------------- .../fred/scripts/archival/raw_synch.sh | 21 +++++++++++++++++++ 2 files changed, 21 insertions(+), 15 deletions(-) delete mode 100644 scripts/customize/fred/scripts/archival/raw_surya_synch.sh create mode 100644 scripts/customize/fred/scripts/archival/raw_synch.sh 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 + -- 2.34.1