rsync -av –progress /source/directory/ /destination/directory/
Copy files with archive mode, verbose output, and progress indication.
rsync -azP /local/file user@remote_host:/remote/directory/
Archive and compress files while copying them to a remote server, showing progress.
rsync -av –delete /local/directory/ user@remote_host:/remote/directory/
Synchronize directories; deletes files in the remote directory that no longer exist in the local directory.
rsync -avz –exclude='*.tmp' /local/directory/ user@remote_host:/remote/directory/
Synchronize with archive and compression, excluding temporary files.
rsync -rlt –include='*.jpg' –exclude='*' /local/directory/ user@remote_host:/remote/directory/
Recursively copy only JPEG files from the local directory to the remote server.
rsync -av –bwlimit=2000 /source/ user@remote_host:/destination/
Limit the bandwidth used during the transfer to 2000 Kbps.
rsync -av –dry-run /local/directory/ /destination/directory/
Simulate the operation to see what would be copied without actually making any changes.
rsync -az –info=progress2 /local/file user@remote_host:/remote/file
Show progress with additional information during a compressed file transfer to a remote server.
rsync -avz -e 'ssh -p 2222' /local/directory/ user@remote_host:/remote/directory/
Use SSH on a non-standard port (2222) to transfer files securely to a remote server.