Chimeras / Scripts / Human_Mouse_Separation / stageout_fastqs_human.sh
stageout_fastqs_human.sh
Raw
#!/bin/bash
#
# Example data staging job script that copies a directory from Datastore to Eddie with rsync
#
# Job will restart from where it left off if it runs out of time
# (so setting an accurate hard runtime limit is less important)

# Grid Engine options start with a #$
#$ -N stageout_Log        
#$ -cwd   
# Choose the staging environment
#$ -q staging 

# Hard runtime limit
#$ -l h_rt=01:00:00   

# Make the job resubmit itself if it runs out of time: rsync will start where it left off
#$ -r yes 
#$ -notify
trap 'exit 99' sigusr1 sigusr2 sigterm #POSIX signals

# Source and destination directories

SOURCE=/exports/eddie/scratch/$USER/Chimeras/Data/SplitSpecies/human/only-CB

DESTINATION=/exports/cmvm/datastore/scs/groups/Williamsdata/Nina/Chimeras/Data/SplitSpecies/human

# Perform copy with rsync
# Note: do not use -p or -a (implies -p) as this can break file ACLs at the destination
rsync -rl --remove-source-files ${SOURCE} ${DESTINATION}