Skip to content

Commit ba441d0

Browse files
add rsync to excd (#58)
* add rsync to excd * revert apply_macros changes
1 parent df2f4be commit ba441d0

File tree

1 file changed

+18
-2
lines changed

1 file changed

+18
-2
lines changed

kgo_updates/meto_update_kgo.sh

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -277,11 +277,13 @@ fi
277277
# This process will need modifying as we go forward
278278
# Currently hardcoded to UM kgo as lfricinputs not on ex machines
279279
if [[ $succeeded_ex1a -eq 1 ]]; then
280-
printf "${GREEN}\n\nrsyncing the kgo to exz.\n${NC}"
280+
printf "${GREEN}\n\nrsyncing the kgo to exz + excd.\n${NC}"
281281
printf "Warning: Always rsyncing UM KGO (not lfricinputs) on ex1a"
282282
rsync_dir="kgo/"
283283
host_rsync=$(rose host-select exab)
284-
rsync_com="ssh -Y ${host_rsync} 'rsync -av /common/umdir/standard_jobs/${rsync_dir} login.exz:/common/internal/umdir/standard_jobs/${rsync_dir}'"
284+
285+
# rsync to EXZ
286+
rsync_com="ssh -Y ${host_rsync} 'rsync -av /common/internal/umdir/standard_jobs/${rsync_dir} login.exz:/common/umdir/standard_jobs/${rsync_dir}'"
285287
if [[ $launch_platform == "spice" ]]; then
286288
ssh -Y frum@localhost $rsync_com
287289
else
@@ -292,6 +294,20 @@ if [[ $succeeded_ex1a -eq 1 ]]; then
292294
else
293295
printf "${Green}The rsync to the exz has succeeded.\n${NC}"
294296
fi
297+
298+
# rsync to EXCD
299+
excd_host=$(rose host-select excd)
300+
rsync_com="ssh -Y ${host_rsync} 'rsync -av /common/internal/umdir/standard_jobs/${rsync_dir} ${excd_host}:/common/internal/umdir/standard_jobs/${rsync_dir}'"
301+
if [[ $launch_platform == "spice" ]]; then
302+
ssh -Y frum@localhost $rsync_com
303+
else
304+
sudo -iu umadmin bash -c '$rsync_com'
305+
fi
306+
if [[ $? -ne 0 ]]; then
307+
printf "${RED}The rsync to the excd has failed.\n${NC}"
308+
else
309+
printf "${Green}The rsync to the excd has succeeded.\n${NC}"
310+
fi
295311
elif [[ $platforms == *"ex1a"* ]]; then
296312
printf "${RED}\n\nSkipping the rsync to the exa as the exz install failed.\n${NC}"
297313
fi

0 commit comments

Comments
 (0)