rsync

Basic use

rsync -narvzh <from> <to>

-n dry-run (no to really copy, just write what would you do)

-a archive (preserves symbolic links, file permissions, user & group ownerships and timestamps_

-r recursive

-v verbose (write all copied files)

-z compress

-h sizes are in human readable formats

 

if <from> has slash at the end, rsync will copy contents of <from> directory to <to> directory

if <from> has no slash at the end, rsync will copy <from> directory to inside of <to> directory

 

<from> and <to> can be abosulte path or user@machine.com:absolute/path

 

On local computer compress option (-z) should probably be not used