Skip to content

Commit

Permalink
somewhat safer synch (issue COSIMA/access-om2#59)
Browse files Browse the repository at this point in the history
  • Loading branch information
aekiss committed Dec 5, 2017
1 parent d5b4aed commit 598c8bc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions sync_output_to_gdata.sh
Expand Up @@ -7,9 +7,10 @@
#PBS -N sync_output_to_gdata

# Set this directory to something in /g/data3/hh5/tmp/cosima/
# (make a unique path for your set of runs)
# Make a unique path for your set of runs.
# DOUBLE-CHECK IT IS UNIQUE SO YOU DON'T OVERWRITE EXISTING OUTPUT!
GDATADIR=/ERROR/SET/GDATADIR/IN/sync_output_to_gdata.sh

mkdir -p ${GDATADIR}
cd archive
rsync --exclude "*.nc.*" -av --safe-links --no-g output* ${GDATADIR}
rsync --ignore-existing --exclude "*.nc.*" -av --safe-links --no-g output* ${GDATADIR}
4 changes: 2 additions & 2 deletions sync_restarts_to_gdata.sh
Expand Up @@ -8,5 +8,5 @@

source sync_output_to_gdata.sh # to define GDATADIR and cd archive

# rsync -av --safe-links --no-g restart??[05]* ${GDATADIR}
rsync -av --safe-links --no-g restart* ${GDATADIR}
# rsync --ignore-existing -av --safe-links --no-g restart??[05]* ${GDATADIR}
rsync --ignore-existing -av --safe-links --no-g restart* ${GDATADIR}

0 comments on commit 598c8bc

Please sign in to comment.