5,710
edits
Changes
Home
,→rsync to transfer files to server
*grab documents from online backup:
<code>rsync -n -h -e ssh -avz --stats --progress b393466@hanjin.dreamhost.com:~/Documents/dxarts473_s11/ Documents/</code>
==== rsync push.sh ====
<code>
#!/bin/bash
echo name of script is $0
echo first argument is $1
if [ $# -lt 1 ]
then
echo "usage: $0 [DIRECTORY]"
exit
fi
cmd="rsync --delete -h -e ssh -avz --stats --progress $1 b393466@hanjin.dreamhost.com:~/$1"
echo $cmd
$cmd
</code>
==== rsync pull.sh ====
#!/bin/bash
echo name of script is $0
echo first argument is $1
if [ $# -lt 1 ]
then
echo "usage: $0 [DIRECTORY]"
exit
fi
cmd="rsync -n -h -e ssh -uavz --stats --progress b393466@hanjin.dreamhost.com:~/$1 $1"
echo $cmd
$cmd
</code>
=== forcing compile as 32bit, i386 on os x ===