Changes

Jump to: navigation, search

Home

410 bytes added, 02:06, 25 April 2011
rsync push.sh
if [ $# -lt 1 ]
then
echo "usage: $0 [DIRECTORY]" echo " or" echo " $0 -n [DIRECTORY]" echo " or " echo " $0 -n --delete [DIRECTORY]" exit
fi
if [ $1 = "-n" ]
then if [ $2 = "--delete" ] then cmd="rsync -n --delete -h -e ssh -avz --stats --progress $3 b393466@hanjin.dreamhost.com:~/$3" else cmd="rsync -n -h -e ssh -avz --stats --progress $2 b393466@hanjin.dreamhost.com:~/$2" fielif [ $1 = "--delete" ]then cmd="rsync --delete -h -e ssh -avz --stats --progress $2 b393466@hanjin.dreamhost.com:~/$2"
else
cmd="rsync --delete -h -e ssh -avz --stats --progress $1 b393466@hanjin.dreamhost.com:~/$1"
fi

Navigation menu