Mac – Time Machine – “tmutil” syntax to inherit backup set for new drive

backupexternal-diskhard drivessdtime-machine

My iMac had an SSD startup drive (called SSD) and a 3TB internal hard drive (MacintoshHD) duplicating the SSD as well as containing the User folders and all data.

MacintoshHD died last week. I reinstalled the original 1TB hard drive (also called MacintoshHD but not currently being used) and bought an external Thunderbolt 4TB drive. Onto this I've copied my home folder (at root level so the supplied LaCie setup software is untouched in the root too).

I have successfully restored everything but my Movies and Downloads folders (which stupidly I excluded from TM because of space issues!) by copying the contents of the .../Backups.backupdb/Macintosh/Users/operacentric folder to the new drive. Thus the new drive doesn't duplicate all users and system folders that the original had.

I want Time Machine to continue using the existing backup set (at least until I can afford an 8TB new drive when I can start again!) It has backups for SSD and MacintoshHD until the last backup but one (which is when the HDD failed). So the Latest folder contains an SSD backup but the previous one has folders for both drives.

Having read the manual page and various guides here and elsewhere about TMUTIL, I believe I can use Associatedisk to relink the backup to the new drive. However, they don't deal with the issue of having two drives in the backup. I am not quite sure of the syntax – do I use the root drive name (LaCie), the Users folder or the operacentric folder?

sudo tmutil  associatedisk [-a] mount_point snapshot_volume

Is the mount_point:

  • /volumes/LaCie or
  • /Volumes/LaCie/Users or
  • /Volumes/LaCie/Users/operacentric ?

Can I use the actual snapshot volume rather than the (missing) link in Latest?, so

/Volumes/TimeMachine/Backups.backupdb/iMac/2017-12-24-000806/MacintoshHD

or do I enter the same point of the hierarchy

/Volumes/TimeMachine/Backups.backupdb/iMac/2017-12-24-000806/MacintoshHD/Users/operacentric?

All the posts I've seen here relate to a single drive – not sure how to work with the internal and the external…

Best Answer

I am extremely confused as to what names are what disks and partitions and such in your particular scenario. Therefore I will attempt to provide some guidance on the ‘associatedisk’ verb and how to use it, but I can't say for sure the exact commands to run with the names of your existing disks as I don't know what's what.

The associatedisk verb takes a mount point and a snapshot volume, as you found from the man page. This means if you are backing up a disk named "Macintosh HD" on a computer named "George's MacBook" to a Time Machine backup disk named "Time Machine HD", to reassociate this disk to the backup you would run:

sudo tmutil associatedisk -a "/Volumes/Macintosh HD" \
  "/Volumes/Time Machine HD/Backups.backupdb/George's MacBook/Latest/Macintosh HD"

The -a flag associates all other snapshots of the same volume to the disk. This might be useful as you mention something about ‘Latest’ link being broken — point at a specific date/time and use the flag so that the other snapshot dates are associated too.

Feel free to add to your question with a list of disks, partition names and what their purpose is in your setup and I might be able to provide some specific commands to run.