Time Machine backups to Windows shared network drive
As some of you may have already read I acquired a MacBook Pro about half a year ago and I love it ;) . Now one of the really cool things OS X provides is Time Machine backups.
It's so great because you simple don't have to do anything. If at all, you can specify the folders which should be excluded from the backup, but the rest is a completely automated process. Time Machine takes care of creating backups that contain the best possible coverage, starting from hourly, weekly to monthly backups, depending on the remaining space on your backup drive.
Anyway, I already bought an external HD about 1 1/2 years ago (I guess). Unfortunately it cannot be attached to the network, but just over USB. So for a while I used to do my backups by manually attaching my HD to the USB port of my MacBook and let Time Machine do its work. However this is cumbersome and you often forget to attach it regularly and moreover, the HD usually stands at some place in your apartment. You're not going to take it around and again, it's nerving to take your notebook there, attach it just for the purpose of doing backups.
So the idea came to my mind of sharing my HD over the network through another computer. I still have my very first notebook, an Acer which is about 6 years old now, I guess. I usually use it as some kind of server, also for sharing my non-network printer to the home wireless. So why shouldn't I also expose my HD?
A post on Superuser pointed me to some interesting pages (this one is another good one). I'm not going to repeat everything since you can get more informations on the linked pages. The main steps are the following:
- Activate 'unsupported' network drives for backup
defaults write com.apple.systempreferences TMShowUnsupportedNetworkVolumes 1
- Create a sparsebundle which will be used by TimeMachine for doing its job. This sparsebundle has to be created locally
sudo hdiutil create -size 320g -type SPARSEBUNDLE -nospotlight -volname "Backup of <computer_name>" -fs "Case-sensitive Journaled HFS+" -verbose ~/Desktop/<computer_name>_<mac address>.sparsebundle
- Share the external HD on your Windows server (or notebook as in my case) and make sure you have the necessary user rights for writing/reading.
- Mount the network drive and copy the created sparsebundle on it
- Configure the network drive for backups by referencing it from within the Time Machine configuration
Moreover I'd suggest to do the first backup directly over a wired network connection since the 1st backup may take quite a while.
I'm now using this backup mechanism for about three weeks and it works seamlessly. When my Mac is within the home wireless network it automatically connects to the shared backup drive and starts creating his hourly backups. Just great :)



