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 inheritbackup lets a new Mac carry on with the old Mac's Time Machine backup

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

sudo tmutil inheritbackup "/Volumes/timemachine/Old MacBook.sparsebundle"

Lets a new or repaired Mac keep adding to its old Time Machine backup.

Time Machine doesn’t recognise a backup by computer name. Each backup belongs to one Mac, tracked by a unique ID, so after a logic board swap, or on a new Mac that you set up from the old one, Time Machine can start a fresh backup next to the old history. tmutil inheritbackup is the way to say: this backup is mine now.

You point it at the machine directory or, for a backup on a network share, the sparsebundle:

sudo tmutil inheritbackup "/Volumes/timemachine/Old MacBook.sparsebundle"

The man page explains that this reassigns the identity of that backup so the current Mac recognises it during backups. When you inherit a sparsebundle, the machine directory inside comes along. The share has to be mounted first, which you can do in Finder with Command-K, and the command needs root and Full Disk Access.

I’d reach for this when a new MacBook replaces an old one and I want the years of history in one place, so I can still go back to a file from before the switch without hunting through a second backup.

There are caveats. Inheriting is often only one step: depending on the situation you may also need tmutil setdestination to point Time Machine at the disk, or tmutil associatedisk when a disk was erased and refilled, so its old history counts again and the next backup doesn’t copy everything as if it were new. Apple also warns that one Mac owning several backups in the same place is a bad idea, because which one it picks during a backup is undefined, and tmutil tries to spot that before it changes anything. If you only want your files and settings on the new Mac, Migration Assistant is the simpler tool.

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