277
277
# This process will need modifying as we go forward
278
278
# Currently hardcoded to UM kgo as lfricinputs not on ex machines
279
279
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} "
281
281
printf " Warning: Always rsyncing UM KGO (not lfricinputs) on ex1a"
282
282
rsync_dir=" kgo/"
283
283
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} '"
285
287
if [[ $launch_platform == " spice" ]]; then
286
288
ssh -Y frum@localhost $rsync_com
287
289
else
@@ -292,6 +294,20 @@ if [[ $succeeded_ex1a -eq 1 ]]; then
292
294
else
293
295
printf " ${Green} The rsync to the exz has succeeded.\n${NC} "
294
296
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
295
311
elif [[ $platforms == * " ex1a" * ]]; then
296
312
printf " ${RED} \n\nSkipping the rsync to the exa as the exz install failed.\n${NC} "
297
313
fi
0 commit comments