Skip to content

Instantly share code, notes, and snippets.

@baldowl
Created December 27, 2011 08:15
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save baldowl/1523007 to your computer and use it in GitHub Desktop.
Save baldowl/1523007 to your computer and use it in GitHub Desktop.
Moving a Time Machine Disk
# disable indexing on the backup disk
sudo mdutil -i off /Volume/MyBackupDisk
# delete Spotlight's indexes
sudo rm -rf /Volume/MyBackupDisk/.Spotlight-V100
# re-enable indexing
sudo mdutil -i on /Volume/MyBackupDisk
# configure that disk as the new backup destination
sudo tmutil setdestination /Volumes/MyBackupDisk
# claim the machine directory, previously used by the old Mac
sudo tmutil inheritbackup /Volumes/MyBackupDisk/Backups.backupdb/MyMac
# bind all the snapshots to this Mac's disk
sudo tmutil associatedisk -a / \
/Volumes/MyBackupDisk/Backups.backupdb/MyMac/Latest/MyOldDisk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment