rsync - a fast, versatile, remote (and local) file-copying tool
SYNOPSIS
Local: rsync [OPTION…] SRC… [DEST]
Access via remote shell: Pull: rsync [OPTION…] [USER@]HOST:SRC… [DEST] Push: rsync [OPTION…] SRC… [USER@]HOST:DEST
Access via rsync daemon: Pull: rsync [OPTION…] [USER@]HOST::SRC… [DEST] rsync [OPTION…] rsync://[USER@]HOST[:PORT]/SRC… [DEST] Push: rsync [OPTION…] SRC… [USER@]HOST::DEST rsync [OPTION…] SRC… rsync://[USER@]HOST[:PORT]/DEST)
Usages with just one SRC arg and no DEST arg will list the source files instead of copying.
Example
rsync -avzh ~/etc_hosts_file.txt nairobi@192.168.0.103:/home/nairobi
nairobi@192.168.0.103's password:
sending incremental file list
etc_hosts_file.txt
sent 791 bytes received 95 bytes 196.89 bytes/sec
total size is 7.78K speedup is 8.78