#!/bin/sh if [ $# -ne 2 ] then echo "This script needs two arguments:" echo " username on Platinum" echo " directory name on Platinum relative to your home directory" echo "Files will be transferred to ~/tbss.work/." exit -1 fi # username on Platinum USER=$1 # Root directory on Platinum relative to home directory; this directory will # be created by rsync in the the user's tbss.work directory on EWS. ROOTDIR=$2 # Directory on Platinum is ~/ROOTDIR. REMOTEDIR=/u/ac/$USER/$ROOTDIR # The local (destination) directory is $HOME/tbss.work LOCALDIR=$HOME/tbss.work # Options to use with rsync OPTS="-v --copy-links -az -e ssh --progress --exclude example-output" # The command! rsync $OPTS $USER@pt.ncsa.uiuc.edu:$REMOTEDIR $LOCALDIR