Changes

Home

162 bytes added, 19:04, 12 April 2011
rsync pull.sh
<pre>
 
#!/bin/bash
then
echo "usage: $0 [DIRECTORY]"
echo " or"
echo " $0 -n [DIRECTORY]"
exit
fi
if [ $1 = "-n" ]then cmd="rsync -n -h -e ssh -uavz --stats --progress b393466@hanjin.dreamhost.com:~/$2 $2"else cmd="rsync -h -e ssh -uavz --stats --progress b393466@hanjin.dreamhost.com:~/$1 $1"fi 
echo $cmd
$cmd
 
</pre>