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: hold Option in the Time Machine menu to verify a network backup

Backup
~/tips/tip-macos-time-machine-verify-backups

Time Machine menu > hold Option > Verify Backups

Checks that a Time Machine backup on a network disk is still in good shape.

A Time Machine backup on a NAS lives in a disk image that travels over the network every hour. That’s exactly the kind of backup I’d want to check now and then, and macOS has a check for it that you only see when you hold a key.

Click the Time Machine icon in the menu bar, press and hold Option, and choose Verify Backups. Time Machine then checks that the backups on your network disk are in good condition. It does that by itself periodically as well, so this is the button for when you want to know right now, for example after the NAS had a rough night or before you rely on the backup for a new Mac.

Time Machine menu > hold Option > Verify Backups

No Time Machine icon in your menu bar? Turn it on in System Settings > Control Center, at Time Machine, with Show in Menu Bar.

The caveat: Apple describes this check for backups on a network disk, like a share on a NAS or an Unraid server, not for a drive plugged straight into your Mac. For a local drive the closest thing in Terminal is tmutil verifychecksums, which recomputes the checksums of files in a backup and compares them with the ones Time Machine stored at backup time:

tmutil verifychecksums /path/to/a/backup

It prints nothing for files that match, and a ! or ? for files that don’t. Checksums only exist for files backed up since OS X 10.11, so a very old backup has gaps. Either way, the check tells you the data still reads back as it was stored. It doesn’t replace restoring a file now and then to see the whole chain work.

Further reading: Verify your backup disk (Mac User Guide), 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