23Nov/110
How to restore from a TimeMachine backup that is stored on a NAS
I'm now on my 3rd new MacBook Air (1st suffered creaking noises and the 2nd blew up in a puff of electrical smoke) and having just restored it from a TimeMachine backup, I thought it would be the right time to document how this was done when you're using a NAS running afpd as your backup storage. The NAS in question is a rooted Netgear Stora running a custom build of afpd configured to support OS X Lion login and TimeMachine.
- Restart and hold down option
- Select use Safari and open up this web page and remember the following steps
- Quit Safari, open up Terminal from the Utilities menu and run
- Mount the TimeMachine share
- mkdir /Volumes/TimeMachine
- mount_afp aftp://<username>:<password>@<host>/TimeMachine /Volumes/TimeMachine
- ls -l /Volumes/TimeMachine
mkdir /Volumes/TimeMachine mount_afp aftp://<username>:<password>@<host>/TimeMachine /Volumes/TimeMachine ls -l /Volumes/TimeMachine
- Now run the following to mount the sparsebundle
- mkdir /Volumes/Backup
- hdiutil mount -owners on -mountrandom /Volumes/Backup -stdinpass /Volumes/TimeMachine/*.sparsebundle
- ls -l /Volumes/Backup
mkdir /Volumes/Backup hdiutil mount -owners on -mountrandom /Volumes/Backup -stdinpass /Volumes/TimeMachine/*.sparsebundle ls -l /Volumes/Backup
- Quit Terminal
- Select restore and select TimeMachine drive, your TimeMachine backup should be visible
After a couple of hours depending on your network, you should be back up and running