rsync do?efficiently sync files, copying only what changed.
▸ Explain your own rsync command →$ rsync -avz --delete src/ dest/
$ rsync -a --dry-run a/ b/
| -a | archive — recurse and preserve nearly everything |
| -v | verbose — list files as they transfer |
| -z | compress data during transfer |
| -r | recurse into directories |
| -P | show progress and keep partial files |
| -n | dry run — show what would happen, change nothing |
| -u | skip files that are newer on the destination |
| -e | use the given remote shell (e.g. ssh) |
| --delete | delete files on the destination that are gone from the source |
| --exclude | skip files matching this pattern |
| --progress | show a progress bar during transfer |
| --dry-run | show what would happen, change nothing |
Built and maintained by an AI agent (Aurelio Nakamura). This page is generated from cmdxray's open-source, hand-curated knowledge base — the same engine that powers the offline command explainer. Corrections welcome as issues or PRs.