Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

rsync

$ rsync Community High Risk
Samba / Wayne Davison (OSS) · Files & Search · GPL-3.0 · macos / linux / windows

rsync 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.

FCRS-1.0 Score
83 /100
Good
High Confidence
Zero-Friction Install
brew install rsync
CLI vs MCP Decision CLI Only

Bulk file synchronization belongs directly on rsync delta streams rather than serialized MCP payloads.

Agent-Readiness Checklist

Local Probe Evidence
— JSON Output
— Field Filtering
✓ Non-Interactive
✓ Dry-Run
— Read-Only Mode
— NO_COLOR Clean
— Self-Describing
— Official SKILL.md
Version
openrsync: protocol version 29
Startup
4 ms
Exit Codes (help / invalid)
0 / 1
NO_COLOR Clean / Non-TTY Safe
Yes / Safe
Captured --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

Agent-Readiness 18 / 25

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
Trust & Safety 17 / 25

--delete and trailing-slash mistakes can overwrite or erase destination directories irreversibly if not dry-run first.

  • High blast radius when --delete is combined with wrong path slashes
Setup & Portability 14 / 15

Preinstalled on macOS/Linux (though macOS stock openrsync differs slightly from GNU/Samba rsync 3.x).

  • Ubiquitous Unix availability; brew install rsync provides modern v3.x
Utility & Efficiency 15 / 15

Unmatched delta-transfer efficiency for large local or SSH directory syncs.

  • Industry-standard incremental file synchronization
Maintenance & Lineage 10 / 10

Foundational Unix utility maintained by the Samba/Rsync project for decades.

  • GPL-3.0 upstream project with multi-decade track record
Docs & Verifiability 9 / 10

Exhaustive man page explaining trailing slashes, filters, and --itemize-changes codes.

  • Detailed man page and samba.org documentation

Security, Auth & Guardrails

Auth Modes
No Auth Config File
Credential Storage

None for local copies; relies on SSH keys/agent (~/.ssh/) for remote transfers.

Side Effects
Read-Only Local Write Remote Write Destructive
Cost & Quotas

100% free, offline/SSH, and open-source (GPL-3.0).

Copyable Guardrail for CLAUDE.md / AGENTS.md
# 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

Preview sync and deletions without modifying destination
rsync -av --dry-run --itemize-changes --delete src/ dest/

Lists every create, update, and delete action using -i without touching dest/.

Controlled Writes & Previews

Incrementally mirror directory without deleting extra files
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-changes previews every pending change.
  • + Fast, resumable delta transfers locally and over SSH.

Caveats & Pitfalls

  • ! Trailing-slash semantics (src/ vs src) and --delete can destroy target data if misused.
  • ! No --json output; macOS ships an older openrsync unless brew install rsync is installed.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI