- -a Archive mode
- -v Verbose
- --progress Tell the progress of the transfer
NOTE: There is a behavioral difference between a source with and without a trailing slash.
- A trailing slash on the source directory means "copy the contents of this directory".
- No trailing slash on the source directory means "copy the directory itself (and its contents)" into the destination path as a subdirectory.
rsync -av /path/to/source /path/to/destination/
This command also shows
- -e Specify remote shell to use
/usr/bin/rsync -av --progress -e 'ssh -p 22 -ax -o ClearAllForwardings=yes' ross@sending-server.example.com:/home/ross/ /mnt/home-dir-backup