rsync 3.5.0 (protocol 32): lesson test 2026-11-15 (passed)

Record test:sapv6c. Question: Make a small source folder and a destination with one extra file, preview the sync with -n, then sync with --delete and --exclude '*.log', and list what the destination holds.

Answer, as one quotable line (version, date, result and limits together):

Cite: headlesson test:sapv6c — rsync 3.5.0 (protocol 32), 2026-11-15: 6/6 lesson steps passed (operator record). On 2026-11-15, the headlesson operator ran all 6 steps of this lesson with rsync 3.5.0 (protocol 32) (macOS 27.2 (26B123) arm64; existing Homebrew rsync 3.5.0 (brew list --versions: rsync 3.5.0, not reinstalled); bash -c with each exact step in a fresh empty folder; authored files only; no network), and all passed. The final Next step is advice and was not run. No independent check has been reviewed. This is the operator's own run, not a vendor claim. Sample tested: two self-made small folder trees (text and binary files, a changed file with the same size and time, a subfolder to delete, a symlink, an empty folder and a Japanese file name), local copies only. https://headlesson.com/tests/sapv6c

Tested on

  • Test date: 2026-11-15
  • Record confirmed: 2026-11-15
  • Version: 3.5.0 (protocol 32)
  • Environment: macOS 27.2 (26B123) arm64; existing Homebrew rsync 3.5.0 (brew list --versions: rsync 3.5.0, not reinstalled); bash -c with each exact step in a fresh empty folder; authored files only; no network
  • Sample tested: two self-made small folder trees (text and binary files, a changed file with the same size and time, a subfolder to delete, a symlink, an empty folder and a Japanese file name), local copies only
  • Result: passed, 6/6 steps

Lesson steps and what happened

  • 1. [passed] brew list --versions rsync || brew install rsync
  • 2. [passed] "$(brew --prefix)/bin/rsync" --version
  • 3. [passed] mkdir -p src/sub dst && printf 'one\n' > src/a.txt && printf 'two\n' > src/sub/b.txt && printf 'log\n' > src/skip.log && printf 'old\n' > dst/gone.txt
  • 4. [passed] "$(brew --prefix)/bin/rsync" -a -n -v --delete --exclude '*.log' src/ dst/
  • 5. [passed] "$(brew --prefix)/bin/rsync" -a -v --delete --exclude '*.log' src/ dst/
  • 6. [passed] find dst -type f | sort

Next (advice, not tested)

Next: Agree with the user on the real source and destination and on whether files missing from the source may be removed. Run the command with -n first and read the deleting lines, then run it without -n, and compare the two folders before relying on the copy.

Cautions recorded with the lesson

These notes come from the lesson. Some describe failures seen in tests; others are general cautions. Each one is not a separately tested result.

The current lesson on the App page has since changed; this page keeps the text at the tested revision.

  • macOS has its own rsync at /usr/bin/rsync, which is openrsync (protocol 29, "rsync version 2.6.9 compatible"), not this program. Which one a bare rsync runs depends on PATH; in the trial /opt/homebrew/bin came first. Call the Homebrew binary by its full path when the difference matters.
  • A trailing slash on the source matters. src/ dst/ copies the contents of src into dst; src dst/ (no slash) made dst/src. Both were checked against the source.
  • The default check is size and modification time only. A file changed to other content of the same size with the same mtime was not copied, and -n -i did not list it; -c (--checksum) found and copied it (17 bytes), and a second -c run copied nothing.
  • --delete removed the one destination file missing from the source (the -n run listed it as deleting sub/c.txt first). Without --delete the extra file stayed.
  • Between two local folders rsync sends whole files: updating a 256 KiB file with 64 changed bytes sent 262,954 bytes of literal data. With --no-whole-file the same update sent 1,510 bytes literal and 261,444 bytes matched, and gave the same result.
  • The -n run of the first copy printed "created directory dst" but did not create it. The output ends with (DRY RUN).
  • With a missing source folder it exited 23 ("change_dir ... failed: No such file or directory") and still created the empty destination folder.
  • Only folders on the same machine were tried. ssh, an rsync daemon, permissions and owners across machines, extended attributes and large trees were not tried.
  • Confirm: Run with -n first and read every deleting line before using --delete on real folders; compare the destination with the source afterwards, and use -c when files can change without a new size or mtime.

What this record does not show

  • Not measured in this run: remote transfers (ssh or the rsync daemon), and ownership, permissions or extended attributes between machines.
  • Not measured in this run: hard links, large trees and speed.
  • Not measured in this run: copies between the two implementations (one sending, the other receiving).
  • Not measured in this run: other delete modes (such as --delete-after), --backup, --link-dest, --partial and --progress.
  • Not measured in this run: Intel Macs (Homebrew under /usr/local); the lesson uses $(brew --prefix) but was not run there.
  • Whether an agent new to this tool can use it from this record alone (the operator wrote and ran the lesson).
  • Comparisons between models or clients.
  • Production use, accounts, or real customer data.
  • Behaviour of the latest version (the test is tied to the version and date below).
  • The final "Next" step is advice and was not part of the test.

Primary record

Operator record: a past lesson trial (legacy). It is not claimed to meet level L1 of run-task-contract/0.1.0.

What "legacy" and L1 mean, and why this record does not claim L1: Record levels and labels.

Independent check

Independent check: not yet reviewed. (Whether an independent check exists has not been looked up for this record.)

Evidence

A non-public test report exists and is not published, so third parties cannot check it directly.

Retrieve over MCP

headlesson_get id="app:rsync" sections ["lesson","gotchas"] on https://mcp.headlesson.com/mcp

Source version

This page is built from the catalog record app:rsync at revision 3ff8f5f3a495. It is not rewritten when the current lesson changes; a new test gets a new record ID.

Sources: 17 fields from 2 sources (JSON pointers into the .json version)

Each line names fields of this page (as JSON pointers into the .json version) and where they come from. Labels without a link are non-public sources. Fields not listed (such as test results) are the headlesson operator's own observations.

  • /question, /next_advice, /cautions/items/7, /cautions/items/8: headlesson editorial judgement (checked 2026-11-15, inferred, editorial)
  • /steps/0/step, /steps/1/step, /steps/2/step, /steps/3/step, /steps/4/step, /steps/5/step, /cautions/items/0, /cautions/items/1, /cautions/items/2, /cautions/items/3, /cautions/items/4, /cautions/items/5, /cautions/items/6: headlesson editorial judgement (checked 2026-11-15, primary, editorial)

Corrections

None.

Page updated: 2026-11-17 (the date its content last changed).

要約(日本語): rsync の lesson を 2026-11-15 に headlesson の運営が 3.5.0 (protocol 32) で試し、6/6 段が通った(passed、運営の実測で製品側の主張ではない)。この記録が示さないこと・独立確認の状況は本文のとおり。