Monday, November 28, 2011

Time Machine backups to a drive on another Mac over the network

I've got a huge external drive on my desktop Mac which I use for a Time Machine backup. However, my MacBook has gone un-backed up for a long time. I had heard over the years that you could hack your way to a network Time Machine backup, but never bothered trying (I try to avoid hacks because they usually blow up in my face and takes a ton of time to fix). However, now that I'm using Aperture heavily on my laptop, I don't want to go without a backup of all of my pics.

Turns out, it's very, very easy to set up an external drive on one Mac as a Time Machine volume over the network.
  1. Share the external hard drive. To do this, do a Get Info on the external drive and click the Shared Folder checkbox.
  2. Open up System Preferences > Sharing.
    1. Make sure File Sharing is enabled.
    2. You should see the external hard drive listed in the Shared Folders column. Click it.
    3. Click the + icon in the Users column and add the user you connect with from the networked computer.
    4. Set up Read & Write access for that user.
    5. Ideally you should remove/lower privileges for other users here. In my case the shared external drive had all kinds of unreasonable default permissions for Unknown User, Guest, and Everyone.
  3. On the networked machine, go to the terminal and enter:
    defaults write com.apple.systempreferences TMShowUnsupportedNetworkVolumes 1
  4. Use the Finder to connect to the machine hosting the external drive with the user you configured in step #3 above.
  5. Open System Preferences > Time Machine.
  6. Click Select Disk.
  7. You should see the external drive listed, pick it.
  8. Profit!
So next you're probably wondering, dang this initial backup is going to take forever. Well, there's a trick for that, too. Apple File Sharing works over a local non-routed network (ie Bonjour). So just hook up your two computers with an ethernet cable, and disable WiFi on the machine that doesn't have the external drive attached. You should still be able to see the shared external drive in the Finder, only now it's running on Gigabit Ethernet (or the fastest your two machines can manage with each other). This is a great way to do the initial backup, and subsequent backups will be much smaller and not as big of a deal.

Enjoy!

0 comments:

Post a Comment