fixins
authorFred Hamster <fred@gruntose.com>
Sat, 14 Dec 2024 22:45:44 +0000 (17:45 -0500)
committerFred Hamster <fred@gruntose.com>
Sat, 14 Dec 2024 22:45:44 +0000 (17:45 -0500)
scripts/customize/fred/scripts/jobby/archie_grabber.sh
scripts/customize/fred/scripts/jobby/mirror_uva_codes.sh

index 63224c9b4034bba8512a175f60a8912265911fe8..abf74d60974b5e65271aacb56e2133fb5359191d 100644 (file)
@@ -50,6 +50,19 @@ EOF
 mkdir -p $HOME/grabbing_archies
 pushd $HOME/grabbing_archies
 
+export DATA_GRAVE_SHUFFLE_COMMAND="$(mktemp "$TMP/data_engraver-XXXXXX.sh")"
+echo '\
+#!/usr/bin/env bash
+# moves the newly copied archives into a junk folder.
+ARCHIVE_DIR_PREFIX="'$ARCHIVE_DIR_PREFIX'"
+DATA_GRAVE="$(mktemp -d $HOME/old_junk.XXXXXX)"
+mkdir -p $DATA_GRAVE
+echo "moving old $ARCHIVE_DIR_PREFIX* folders into $DATA_GRAVE"
+mv $ARCHIVE_DIR_PREFIX* $DATA_GRAVE
+' > $DATA_GRAVE_SHUFFLE_COMMAND
+
+#hmmm: got the script done above.  need to start calling the host strider for this.
+
 ####
 
 # these hosts are all in the ITS domain...
index c422492d25f8d35506122f425abbb88b79557dee..e422702a042eccba2890856422d1c42c574d07f1 100644 (file)
@@ -2,5 +2,5 @@
 
 # get the uva codes.
 mkdir -p ~/data/code_depot/uva_codes/
-rsync -avz --del cak0l@clambook:apps/*  ~/data/code_depot/uva_codes/
+rsync -avz --delete cak0l@clambook:apps/  ~/data/code_depot/uva_codes/