Can I use Time Machine to back up data to a Windows shared drive?

How can I do "Time Machine" from my Mac OS X 10.6.4 to my Window share drive? I'd also prefer to encrypt my image, so it's "safe" just in case :-)


Solution 1:

In order to create a Time Machine backup to an unsupported drive (pretty much anything that's not formatted HFS+) you need to run the following Terminal command:

defaults write com.apple.systempreferences TMShowUnsupportedNetworkVolumes 1

Your share will now show up as a valid Time Machine destination in the Time Machine Preference Pane.

Time Machine will then create a disk image on that drive that will act just like a HFS+ drive for Time Machines purposes (hard linking, etc.). One advantage of using a disk image over using the entire drive is that you can limit the size it will grow to of the disk image using Disk Utility.

Be sure to check Louis Gerbarg's answer as well for why it's unsupported and you have to jump through a hoop to enable it.

Solution 2:

There are various hacks to setup a diskimage on the share, which I am sure other people will describe in depth. Having said that DO NOT USE SMB TO STORE TIME MACHINE BACKUPS.

Guaranteeing writes on a disk image backed over a network store is complicated. Apple had reliability issues with Time Machine over AFP for years, and they controlled the entire stack. In order to guarantee write ordering and write stability (which are necessary in order for Time Machine to work in the presence of intermittent networking, such as walking out or range of the base station or putting the machine to sleep midbackup and waking it up out of range) Time Machine depends on features specific to AFP (For those interested, those are published as part of the Time Machine Network Server Requirements).

If you want to backup to a Windows Machine you should probably get a copy of ExtremeZ-IP, if it is a linux box running SAMBA you should install netatalk.