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 latestbackup tells you when Time Machine last finished a backup

Backup
~/tips/tip-macos-tmutil-latestbackup

sudo tmutil latestbackup

Shows the date of your newest Time Machine backup from Terminal.

A backup you never check is a backup you hope exists. To see the date of the last Time Machine backup you can open the settings, but from Terminal, or over SSH from another machine, I’d just ask tmutil.

tmutil latestbackup lists this Mac’s latest completed backup. Its sibling tmutil listbackups lists all completed backups of this computer. Both need root and Full Disk Access, so put sudo in front.

sudo tmutil latestbackup

The name of each backup contains its date and time in the form 2026-11-27-101500, so you can read straight off it how old your newest backup is. Want to know how many versions you can go back to? Count the lines of the full list:

sudo tmutil listbackups | wc -l

Got more than one backup disk? The -d option points either command at the volume you mount at a given path, and with -m -t after it you get only the timestamps. I’d reach for latestbackup when a backup disk sits on a NAS and I want to know whether the Mac has actually reached it lately, without clicking through any menus.

The caveat is the permission part. If tmutil gives you an error or empty output even with sudo, the app you’re running it in probably lacks Full Disk Access. Add Terminal (or your terminal app of choice) under System Settings > Privacy & Security > Full Disk Access and open a new window.

Further reading: tmutil man page (SS64 mirror)

More Backup tips restic snapshots --group-by host,paths mysqldump --routines --events mydb > mydb.sql rsync -a --files-from=list.txt /home/me/ backup:/backup/ restic find "*.txt" restic stats All Backup tips (45) All topics

Link