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