Monday, June 27, 2011

Rsync via ssh cheat

Another one filed under "can't remember, so I'll write down an example"

# Below copies local_file to remote_machine in remote_user's home directory, should be able to restart at last checkpoint if connection drops
bash-3.2$ rsync -avvz -e ssh /path/to/local_file remote_user@remote_machine:~/