Transfer files either to or from a remote host (not between two remote hosts). Can transfer single files, or multiple files matching a pattern.
rsync {{path/to/local_file}} {{remote_host}}:{{path/to/remote_directory}}
rsync {{remote_host}}:{{path/to/remote_file}} {{path/to/local_directory}}
rsync -azvhP {{path/to/local_file}} {{remote_host}}:{{path/to/remote_directory}}
rsync -r {{remote_host}}:{{path/to/remote_directory}} {{path/to/local_directory}}
rsync -r {{remote_host}}:{{path/to/remote_directory}}/ {{path/to/local_directory}}
rsync -ru {{remote_host}}:{{path/to/remote_directory}} {{path/to/local_directory}}
rsync -e ssh --delete {{remote_host}}:{{path/to/remote_file}} {{path/to/local_file}}
rsync -e ssh --info=progress2 {{remote_host}}:{{path/to/remote_file}} {{path/to/local_file}}