Last Updated: July 04, 2023
·
487
· mechastorm

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