rsync [options] source destinationArguments explained
- source and destination may be local or remote.
- -a enables archive mode.
- -v is verbose.
- -z compresses during transfer.
- --delete removes destination files missing from source.
Common examples
rsync -av ~/site/ server:/var/www/site/Copies changes from local site directory to a remote server.
rsync -av --dry-run source/ backup/Shows what would change without copying.
| Field | Details |
|---|---|
| Command | rsync |
| Category | Remote Access |
| Primary use | Synchronizes files locally or over SSH. |
| Syntax | rsync [options] source destination |