The killer feature: delta transfer
rsync compares source and destination at a block level and transfers only what differs. Change a 1 KB string in a 1 GB log file? rsync sends roughly 1 KB plus checksums — not 1 GB. This is the property that makes rsync the universal file-sync tool of the Unix world.
What you get on top of delta
- Compression in flight (
-z) for slow links. - Resume with
--partialwhen transfers get cut. - Exclude patterns — skip
node_modules,.git, etc. - Permissions, timestamps, symlinks, ownership preserved with archive mode (
-a). - Dry run (
-n) — see exactly what would change without running. - Sync deletion (
--delete) — make the destination an exact mirror of the source. - Local or over SSH — same syntax for both.