rsync
Installation
SKILL.md
Identity
- Binary:
rsync - Daemon mode:
rsync --daemon(optional; most uses are one-shot CLI invocations) - Daemon config:
/etc/rsyncd.conf,/etc/rsyncd.secrets - Daemon logs:
journalctl -u rsync(if using systemd unit), orsyslog/--log-file - Distro install:
apt install rsync/dnf install rsync
Key Operations
| Task | Command |
|---|---|
| Basic local sync | rsync -av /src/ /dst/ |
| Dry run first (always before --delete) | rsync -av --dry-run /src/ /dst/ |
| Short dry-run flag | rsync -avn /src/ /dst/ |
| Remote push over SSH | rsync -av -e ssh /src/ user@host:/dst/ |
| Remote pull over SSH | rsync -av -e ssh user@host:/src/ /dst/ |
| Remote push via rsync daemon | rsync -av /src/ rsync://host/modulename/ |
| Archive mode (preserve perms, times, symlinks, owner, group) | rsync -a /src/ /dst/ |
Related skills