Rsync Over SSH

By | 2010/12/15

Here is a quick and easy way for transferring files via rsync over ssh.

rsync [options] ssh [local source directory] [user@server]:[destination on server]

Example:

# rsync -avPz /home/bob/workstuff bob@192.168.1.125:~/

a (recursive, hidden files incl, etc. – the standard rsync option)
v verbose
P show Progress

z compress data during transfer

This will make a copy of the directory ‘workstuff’ onto the machine 192.168.1.125 in bob’s home directory there.

Cool!

Leave a Reply

Your email address will not be published. Required fields are marked *

Notify me of followup comments via e-mail. You can also subscribe without commenting.