From: Fred T. Hamster Date: Tue, 12 Nov 2024 21:26:37 +0000 (-0500) Subject: trying to get the archive grabber script up X-Git-Url: https://feistymeow.org/gitweb/?a=commitdiff_plain;h=baac808dd3da0cd29780c3b1b1cc0998369005d3;p=feisty_meow.git trying to get the archive grabber script up 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. --- diff --git a/scripts/customize/fred/scripts/jobby/archie_grabber.sh b/scripts/customize/fred/scripts/jobby/archie_grabber.sh index 7c0d1109..5e3c5ab6 100644 --- a/scripts/customize/fred/scripts/jobby/archie_grabber.sh +++ b/scripts/customize/fred/scripts/jobby/archie_grabber.sh @@ -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