Preview a Backup with rsync --dry-run
See exactly which files a sync would copy or delete before letting rsync change anything.
01Command
$ rsync -ahn --delete ~/Documents/Project /Volumes/Backup/ # remove -n to actually run02What it does
rsync compares source and destination and normally copies immediately; the -n (dry-run) flag turns it into a rehearsal that only lists the deltas — files to copy, files --delete would remove. This makes it the safe way to test backup commands, especially destructive ones, and the output doubles as a change report between two folders.
03Risk
04Undo
✓No undo needed — this command does not change persistent state.
05Sources
- rsync - Fast, Versatile File Copy/SyncEvidence: Documents -n / --dry-run (show what would have been transferred without doing it), -a archive mode, -h human-readable output and the --delete option.
- rsync(1) man pageEvidence: The rsync man page describes -n/--dry-run as performing a trial run with no changes made, plus -a archive, -h output and --delete deletion of extraneous files.
Last verified: 2026-09-19 · Category: Files & Folders
06Related solutions
The copy command that keeps Finder flags, ACLs, resource forks, and exact permissions intact.
See every local APFS Time Machine snapshot on your startup disk and delete ones you no longer need.
Snapshot an entire app's settings to a plist file, then restore or migrate it later.