From 5b94908b7ea607e1b77c20ba6c28cf224bf29001 Mon Sep 17 00:00:00 2001 From: James Bruten Date: Fri, 12 Dec 2025 08:55:12 +0000 Subject: [PATCH] switch rsyncs --- kgo_updates/meto_update_kgo.sh | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/kgo_updates/meto_update_kgo.sh b/kgo_updates/meto_update_kgo.sh index 36a4b4c..9605736 100755 --- a/kgo_updates/meto_update_kgo.sh +++ b/kgo_updates/meto_update_kgo.sh @@ -202,29 +202,29 @@ fi # This process will need modifying as we go forward # Currently hardcoded to UM kgo as lfricinputs not on ex machines if [[ $succeeded_ex1a -eq 1 ]]; then - printf "${GREEN}\n\nrsyncing the kgo to exz + 2nd Host Zone.\n${NC}" + printf "${GREEN}\n\nrsyncing the kgo to 2nd Host Zone + EXZ.\n${NC}" host_from=$(rose host-select "$ex_kgo_host") - # rsync to EXZ - rsync_com="ssh -Y ${host_from} 'rsync -av /common/internal/umdir/standard_jobs/${rsync_dir} login.exz:/common/umdir/standard_jobs/${rsync_dir}'" + # rsync to 2nd Host Zone + host_to=$(rose host-select "$ex_rsync_host") + rsync_com="ssh -Y ${host_from} 'rsync -av /common/internal/umdir/standard_jobs/${rsync_dir} ${host_to}:/common/internal/umdir/standard_jobs/${rsync_dir}'" sudo -iu ${root_user} bash -c "$rsync_com" rc=$? if [[ $rc -ne 0 ]]; then - printf "${RED}The rsync to the exz has failed.\n${NC}" + printf "${RED}The rsync to the ${host_to} has failed.\n${NC}" else - printf "${GREEN}The rsync to the exz has succeeded.\n${NC}" + printf "${GREEN}The rsync to the ${host_to} has succeeded.\n${NC}" fi rc= - # rsync to 2nd Host Zone - host_to=$(rose host-select "$ex_rsync_host") - rsync_com="ssh -Y ${host_from} 'rsync -av /common/internal/umdir/standard_jobs/${rsync_dir} ${host_to}:/common/internal/umdir/standard_jobs/${rsync_dir}'" + # rsync to EXZ + rsync_com="ssh -Y ${host_from} 'rsync -av /common/internal/umdir/standard_jobs/${rsync_dir} login.exz:/common/umdir/standard_jobs/${rsync_dir}'" sudo -iu ${root_user} bash -c "$rsync_com" rc=$? if [[ $rc -ne 0 ]]; then - printf "${RED}The rsync to the ${host_to} has failed.\n${NC}" + printf "${RED}The rsync to the exz has failed.\n${NC}" else - printf "${GREEN}The rsync to the ${host_to} has succeeded.\n${NC}" + printf "${GREEN}The rsync to the exz has succeeded.\n${NC}" fi rc= elif [[ $platforms == *"ex1a"* ]]; then