Shifting to a new Mac via Time Machine

Some notes on a procedure that's simple and at the same time complicated.

As my old (6 years) MacBook was struggling to do much of anything, it was time to move to a new machine. One of the great aspects of Apple's Time Machine backup software is how easy it makes it to do this - start the new machine up, plugin the backup in, after a while your disk will appear as it was, more or less.

This page is about the more or less - the hiccups and issues encountered. To be fair to Apple, these mostly concern non-Apple software.

Technical details

  • The backup is coming from a MacBook circa 2007 running OS X 10.6
  • It is going to a MacBook Pro mid-2012 running OS X 10.8.4

Google Drive

... naturally fails. It reports that it can't find the Google Drive folder even if you point the software at it. From previous experience, there is only one solution for this - create a new GDrive folder and let the contents be re-downloaded.

Backblaze

This cloud backup does something unexpected but extremely logical when transferred to a new computer - it stops backing up. The service reasons that if a new computer is attached to an old backup, the most sensible thing to do is to preserve the old backup (making it "frozen") in case of error.

Unfortunately exchanging the backup to your new machine is awkward. You have to:

  1. set up a backup from the new machine (which is added to your account as a time-limited trial)
  2. from the webpage for your account, check that both old and new machines are on it
  3. delete the old backup
  4. transfer the license to the new machine

This unfortunately means that backup-wise you're flapping in the breeze for a while: the new machine has to upload itself entirely, building a wholly new backup. At Backblaze's usual speeds, this could take days or weeks.

(Note: Backblaze can sometimes be a little piggy - the backup process occasionally consumes 0.5G of memory. I switched to a once-a-day backup schedule for after midnight to keep it out of my hair.)

Spotlight

Spotlight is notorious for getting out of hand and continually re-indexing, consuming CPU. (Look for the mdsworker process as a sight of this happening.) A common solution is to exclude from Spotlight certain problematic folders that are constantly changing but contain nothing interesting, e.g. cache and temporary folders including those associated with Backblaze. However, the list of excluded folders isn't carried across in a Time Machine restore, so you have to set them again.

I chose to exclude /Library, /System/Library and ~/Library, which captures the Backblaze files. Note that to select the ~/Library folder - which is hidden normally under OSX - can be shown in the select folder dialog by pressing cmd-shift-.

Mendeley

This is possibly un-related to the upgrade procedure and just happened at the same time coincidentally. However:

Post-upgrade, Mendeley was a little fragile - crashing occasionally, repairing the database, etc. Alerted to the availability of an update, I installed the new version. Whereupon Mendeley would crash within minutes of starting. If re-opened, it would repair the database, then crash. Rinse and repair.

The solution to this ended up being the removal of Mendeley totally from the system, including any data and preference files (use Spotlight to search for them) and reinstallation. Mendeley then re-syncs your library including papers with the cloud storage, which takes forever.

DevTools and MacPorts

Things like make, port and other unix commandline things will probably be broken by the upgrade. Time to reinstall everything.

This gets a bit messy. You can now install and maintain DevTools from the AppStore - which is a Good Thing - but it seems that this will install XCode in /Applications, where as older versions of XCode installed in /Developer. So you can end up with two versions of XCode on the one machine. Beware ...

Having installed XCode, run it and install the commandline tools (find these in Preferences > Downloads).

MacPorts is broken horribly by an upgrade. There is a migration guide offered, but this is essentially "uninstall and reinstall it". Do that.

Disk space

I have a suspicion that moving computers and disks leads to cruft accumulating on the disk and consuming space. This is admittedly unproven and based solely on what seems to be the disappearance of spare room on the disk during transfers. It's therefore useful to cleanup the disk of large and useless files. I suggest these methods:

  • Use a disk mapping program like Grand Perspective to see where the large files are on your disk. (By this method I was able to spot and delete several bulky virtual machine images, some pathologically large PDFs and a gigabyte of temporary files created by Graphic Converter, which I hadn't used in years.)
  • Download the appropriate version of Onyx and use it to flush cache and temporary files.
  • Housekeeping programs like Hazel - which keeps track of what files are installed and created by an application - can be invaluable when deleting old and useless applications from your disk. Otherwise the cruft from long-deleted apps can hang around forever.