Useful rsync Command Snippets for Linux
Copying files locally#
rsync -avhW --no-compress --progress /src/ /dst/
Passing SSH Extra Options#
rsync -avzhP --stats -e 'ssh -o "Hostname <ip>"' <bastion_host>:/src/ /dst/
rsync -avhW --no-compress --progress /src/ /dst/
rsync -avzhP --stats -e 'ssh -o "Hostname <ip>"' <bastion_host>:/src/ /dst/