From 7c55054dfb0833d9b75dde9e4d057dd209137427 Mon Sep 17 00:00:00 2001 From: Chris Koeritz Date: Thu, 2 Jun 2022 08:51:46 -0400 Subject: [PATCH] new script for work computer cleanup --- .../scripts/jobby/compare_clambook_dirs.sh | 31 +++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 scripts/customize/fred/scripts/jobby/compare_clambook_dirs.sh 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 index 00000000..b4309656 --- /dev/null +++ b/scripts/customize/fred/scripts/jobby/compare_clambook_dirs.sh @@ -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 + + -- 2.34.1