rsync
Fast, versatile remote and local file-copying tool with delta transfer.
Synopsis
rsync [OPTION]... SOURCE DEST
Examples
rsync -avz src/ dest/
rsync -avz -e ssh local/ user@host:/remote/
rsync -avz --delete src/ dest/
rsync -avz --progress large.iso user@host:/data/
rsync -avzn src/ dest/
Common options
| Flag | Description |
|---|---|
| -a | Archive mode (recursive, preserves symlinks, permissions, times) |
| -v | Verbose |
| -z | Compress during transfer |
| --delete | Delete files in dest that don't exist in source |
| --progress | Show transfer progress |
| -e | Specify remote shell (e.g. 'ssh -p 2222') |
| --dry-run | Show what would be transferred |
About rsync
The `rsync` command fast, versatile remote and local file-copying tool with delta transfer. Networking commands handle connectivity testing, DNS resolution, data transfer, remote access, firewall rules, and traffic analysis.
Linux is the dominant server operating system, and strong networking skills are essential for web hosting, container orchestration, security auditing, and infrastructure management. The command accepts 7 commonly used flags shown above, though the full set of options is available in the man page (`man rsync`).
The 5 examples on this page cover typical real-world usage patterns that you can copy and adapt for your own workflows.
Related commands
More Network Commands
Other commands in the Network category