Merge branch 'release-2.140.115'
[feisty_meow.git] / scripts / archival / raw_synch.sh
diff --git a/scripts/archival/raw_synch.sh b/scripts/archival/raw_synch.sh
new file mode 100644 (file)
index 0000000..17c4b9b
--- /dev/null
@@ -0,0 +1,23 @@
+#!/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
+    sep
+    echo "synching $currdir folder from $synch_host..."
+    rsync -avz "$synch_host":/z/$currdir/* /z/$currdir/
+  fi
+done
+
+sep
+