Rsync Quickie
I am always get my rsync commands confused. In general it should always be
rsync source destination
Local => Local
$ rsync -av --progress --itemize-changes an-alias-/some/source/somewhere/ /some/
target/elsewhere
$ rsync -av --progress --itemize-changes --remove-source-files /some/source/
Local => Remote
Example from an AWS Server on to your home directory in SynHQ
$ rsync -av --progress -e "ssh -p 22" /path/to/source username@remote.server:/path/to/dest
Written by Shih Oon Liong
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Shell
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#