The flag table you'll never need to look up again
| Flag | What it does |
|---|---|
-a | Archive mode — equivalent to -rlptgoD (recursive, preserve symlinks, perms, times, group, owner, devices) |
-v | Verbose — list files as they transfer |
-z | Compress in transit (drop on fast LAN) |
--progress / -P | Per-file progress bars (-P = --partial --progress) |
-h | Human-readable sizes |
-n / --dry-run | Show what would happen without doing it |
--delete | Remove files at destination missing from source |
--exclude | Skip matching files/dirs |
--exclude-from=file | Skip patterns listed in a file |
--partial | Keep partial files for resume |
--stats | Print transfer statistics at the end |
--bwlimit=N | Throttle to N KB/s |
--checksum | Compare by content not mtime+size (slower, more accurate) |