Skip to content

Scripting & Automation

macOS Shell (zsh/bash)

3 curated resources, easiest first.

tmutil - macOS Time Machine utility — by SS64.com

advancedpage

Reference for the tmutil command-line tool for Time Machine. It documents verbs such as restore (copies an item out of a snapshot, cp-style, may need root), listbackups and latestbackup (need root and Full Disk Access), plus addexclusion, startbackup and compare.