brewedbits.dev

Personal blog with guides and news on selfhosting, Linux and AI, from the Netherlands

nextDash nextdash --aboutYour bookmarks. Your terminal. checks your links knows your Docker host one container, no cloudLive demo →nextdash.cc ↗

Tip: tmutil compare shows what changed since the last Time Machine backup, in the terminal

Terminal
~/tips/tip-terminal-tmutil-compare

tmutil compare

Lists files that were added, changed or removed compared with a backup.

Time Machine shows snapshots, but not what is different between them. tmutil compare does a diff against a backup.

With no arguments, it compares the whole Mac to the latest backup:

tmutil compare

It prints the differences item by item, so you can see which folders keep changing between backups and why a backup is bigger than you expected.

That full scan is slow, so I’d point it at the folder you care about. Give it a path on the Mac and the same path inside a backup:

tmutil compare ~/Documents "/Volumes/Backup/2026-11-28-101500.backup/2026-11-28-101500.backup/Macintosh HD - Data/Users/me/Documents"

Options pick what to compare. The default is extended attributes, group, mode, size, times and owner. -s alone compares only sizes, which is faster and often enough, and -E stops it from skipping excluded items.

The backup has to be reachable, and the exact path inside it depends on the backup format, so browse it in Finder first. Reading backup folders also needs Full Disk Access for your terminal app, otherwise you get permission errors that look like missing files. It is read only, so nothing in the backup changes.

Further reading: tmutil man page (macOS)

More Terminal tips ioreg -rn AppleSmartBattery | grep CycleCount Terminal can save your windows and tabs as a window group Export a Terminal profile to a .terminal file and import it on another Mac mc hidutil property --set '{"UserKeyMapping":[{"HIDKeyboardModifierMappingSrc":0x700000039,"HIDKeyboardModifierMappingDst":0x700000029}]}' All Terminal tips (116) All topics

Link