new script for work computer cleanup
authorChris Koeritz <fred@gruntose.com>
Thu, 2 Jun 2022 12:51:46 +0000 (08:51 -0400)
committerChris Koeritz <fred@gruntose.com>
Thu, 2 Jun 2022 12:51:46 +0000 (08:51 -0400)
scripts/customize/fred/scripts/jobby/compare_clambook_dirs.sh [new file with mode: 0644]

diff --git a/scripts/customize/fred/scripts/jobby/compare_clambook_dirs.sh b/scripts/customize/fred/scripts/jobby/compare_clambook_dirs.sh
new file mode 100644 (file)
index 0000000..b430965
--- /dev/null
@@ -0,0 +1,31 @@
+#!/bin/bash
+
+# a little helper script for clambook,
+# which is uva's mac and which doesn't share syncthing.
+# we can easily see what stuff got accidentally put on
+# the /z folders with this, and make sure anything new
+# actually gets back to the true sources of these files.
+
+source "$FEISTY_MEOW_SCRIPTS/core/launch_feisty_meow.sh"
+
+DATA_SOURCE_HOST="curie"
+
+function compare_to_curie()
+{
+  dir="$1"; shift
+  s
+  echo
+  echo "comparing $dir"
+  echo
+  compare_dirs "/z/$dir" "fred@${DATA_SOURCE_HOST}:/z/$dir"
+  retval=$?
+  s
+  echo
+  return $retval
+}
+
+compare_to_curie basement
+compare_to_curie musix
+compare_to_curie walrus
+
+