trying to get the archive grabber script up
authorFred T. Hamster <fred@gruntose.com>
Tue, 12 Nov 2024 21:26:37 +0000 (16:26 -0500)
committerFred T. Hamster <fred@gruntose.com>
Tue, 12 Nov 2024 21:26:37 +0000 (16:26 -0500)
new thing will be to move the old already copied archives dir out of the way.
and not make a new one!  if there's not one there, then we're clean.

scripts/customize/fred/scripts/jobby/archie_grabber.sh

index 7c0d1109e6856876f7ac563567b7f5d7752e75cf..5e3c5ab61789a1b8f8db4864d1bb8f1b9daca875 100644 (file)
@@ -15,9 +15,15 @@ function grab_archies()
     netcp ${host}.${domain_piece}:z_arch* . 
     retval=$?
     if [ $retval -ne 0 ]; then
-      echo Error $retval returned from copying z_arch* from ${host}.${domain_piece}
-      exit 1 
+      echo "Error $retval returned from copying z_arch* from ${host}.${domain_piece}"
+      popd 
+      continue
     fi
+    ssh ${host}.${domain_piece} '{ \
+echo hello; \
+echo "howdy ho!"; \
+echo more stuff here.; \
+}'
     popd 
   done
 }
@@ -26,18 +32,18 @@ mkdir -p $HOME/grabbing_archies
 pushd $HOME/grabbing_archies
 
 domain="its.virginia.edu"
-hostlist="idpprod01 idpprod02 idpprod03 idpprod04"
-grab_archies "$domain" "$hostlist"
+#hostlist="idpprod01 idpprod02 idpprod03 idpprod04"
+#grab_archies "$domain" "$hostlist"
 hostlist="idpdev01 idpdev02"
 grab_archies "$domain" "$hostlist"
-hostlist="idptest01 idptest02"
-grab_archies "$domain" "$hostlist"
-hostlist="idpsistest01 idpsistest02"
-grab_archies "$domain" "$hostlist"
-
-domain="storage.virginia.edu"
-hostlist="manage-s admin02 admin-hsz-s"
-grab_archies "$domain" "$hostlist"
+#hostlist="idptest01 idptest02"
+#grab_archies "$domain" "$hostlist"
+#hostlist="idpsistest01 idpsistest02"
+#grab_archies "$domain" "$hostlist"
+
+#domain="storage.virginia.edu"
+#hostlist="manage-s admin02 admin-hsz-s"
+#grab_archies "$domain" "$hostlist"
 
 popd