rsync
$ rsync Community High Riskrsync synchronizes local or SSH-remote directory trees using delta-transfer compression. Because trailing-slash semantics and --delete can wipe destination files unexpectedly, agents must always preview with --dry-run --itemize-changes first.
brew install rsync Bulk file synchronization belongs directly on rsync delta streams rather than serialized MCP payloads.
Agent-Readiness Checklist
Local Probe EvidenceCaptured --help excerpt
usage: rsync [-0468BCDEFHIKLOPRSTWVabcdghiklnopqrtuvxyz] [-e program] [-f filter] [--8-bit-output] [--address=sourceaddr] [--append] [--backup-dir=dir] [--bwlimit=limit] [--cache | --no-cache] [--checksum-seed=NUM] [--chmod=mode] [--compare-dest=dir] [--compress] [--compress-level=NUM] [--contimeout] [--copy-dest=dir] [--copy-unsafe-links] [--del] [--delete-after | --delete-before | --delete-delay | --delete-during] [--delete-excluded] [--delay-updates] [--dirs] [--no-dirs] [--existing] [--exclude=pattern] [--exclude-from=file] [--executability] [--extended-attributes] [--existing] [--files-from=filespec] [--force] [--ignore-errors] [--ignore-existing] [--ignore-non-existing] [--include=pattern] [--include-from=file] [--inplace] [--itemize-changes] [--keep-dirlinks] [--link-dest=dir] [--list-only] [--max-delete=NUM] [--max-size=SIZE] [--min-size=SIZE] [--modify-window=sec] [--no-implied-dirs] [--no-motd] [--numeric-ids] [--out-format=FMT] [--partial] [--partial-dir] [--password-file=pwfile] [--port=portnumber] [--progress] [--protocol=NUM] [--prune-empty-dirs] [--read-batch=file] [--remove-source-files] [--rsync-path=program] [--safe-links] [--size-only] [--sockopts=sockopts] [--specials] [--stats] [--suffix] [--super] [--timeout=seconds] [--only-write-batch=file | --write-batch=file] source ... directory
FCRS-1.0 6-Dimension Breakdown
Supports --dry-run and --itemize-changes, but lacks --json and relies on subtle trailing-slash conventions.
--dry-run(-n) and--itemize-changes(-i) preview exact file ops
--delete and trailing-slash mistakes can overwrite or erase destination directories irreversibly if not dry-run first.
- High blast radius when
--deleteis combined with wrong path slashes
Preinstalled on macOS/Linux (though macOS stock openrsync differs slightly from GNU/Samba rsync 3.x).
- Ubiquitous Unix availability;
brew install rsyncprovides modern v3.x
Unmatched delta-transfer efficiency for large local or SSH directory syncs.
- Industry-standard incremental file synchronization
Foundational Unix utility maintained by the Samba/Rsync project for decades.
- GPL-3.0 upstream project with multi-decade track record
Exhaustive man page explaining trailing slashes, filters, and --itemize-changes codes.
- Detailed man page and samba.org documentation
Security, Auth & Guardrails
None for local copies; relies on SSH keys/agent (~/.ssh/) for remote transfers.
100% free, offline/SSH, and open-source (GPL-3.0).
# rsync Agent Rules - ALWAYS run `rsync --dry-run --itemize-changes` before executing any real transfer—especially when using `--delete`. - Double-check trailing slashes on source paths (`src/` copies contents; `src` copies the directory itself).
Agent-Ready Command Recipes
Safe Read-Only Queries
rsync -av --dry-run --itemize-changes --delete src/ dest/
Lists every create, update, and delete action using -i without touching dest/.
Controlled Writes & Previews
rsync -av --itemize-changes --exclude='.git/' src/ dest/
Copies updated files cleanly while omitting --delete to prevent accidental data loss.
Strengths for Agents
- + First-class
--dry-run+--itemize-changespreviews every pending change. - + Fast, resumable delta transfers locally and over SSH.
Caveats & Pitfalls
- ! Trailing-slash semantics (
src/vssrc) and--deletecan destroy target data if misused. - ! No
--jsonoutput; macOS ships an olderopenrsyncunlessbrew install rsyncis installed.