We all know about how the HP Media Smart Server boasts Time Machine backups from Mac to the MSS. Well, I know how to get it working on any version/make of Windows Home Server, and I’m going to share how to do so with you.
Prerequisites
- You need to create a separate share for time machine backups. I’d recommend not using duplication unless you have enough space.
- You will need a network connection on your Mac computer with time machine.
- Access to your Home Server’s Console and the AAC (Advanced Admin Console) Add-In.
Enabling backups to shares
There is a command you need to run in Terminal on your Mac. I’ll assume you at least have access to do so.
Copy and paste this command into Terminal (it’s one line):
defaults write com.apple.systempreferences TMShowUnsupportedNetworkVolumes 1
Time Machine Configuration
After executing the command in the last step, you need to mount the share you wish to backup to.
- First find your WHS in Finder.
- Next double click the WHS.
- If asked, login using an account with access to the share (you must save the account to the keychain!). If not, click Connect As and do so.
- Next you need to navigate to the share, in my case “Time Machine”.
- After opening up the share, you can now open the Time Machine preferences.
- Select your share (it gets mounted as a disk, and automatically re-mounted when Time Machine needs to backup) from the list. When asked, enter the same credentials as you used before and turn off backups.
Initial backup
Since Leopard 10.5.2, Apple sort of messed up this little hack. It will fail to create the first backup. To get around this, you have to follow my steps outlined below:
- First, open up the AAC tab in your home server console.
- Click My Computer, and navigate to D:\shares\SHARE_NAME - SHARE_NAME should be your time machine backup share.
- Keep the console window open and switch to the Mac computer.
- Enable backups and initiate a backup.
- Quickly switch back over to the console.
- You’ll see a new file inside the share folder (hidden). Mine was: Brent Friedman’s MacPro3,1_GENERATEDNUMBER.temp.sparsebundle
- Quickly copy the file into the parent directory. D:\shares
Creating a working sparsebundle file
Since Time Machine fails to create this file successfully, we have to make it manually.
- Run Applications/Utilities/Disk Utility on your Mac.
- Up top in the menu bar, click File => New => Blank Disk Image.
- Browse to your desktop in the where to save section.
- For the save as name, use the name of the file that you copied to D:\shares, but remove the .tmp.sparsebundle part of it.
- For the volume name, use Time Machine (probably doesn’t matter)
- For image format, choose sparse bundle disk image.
- Partitions should be No partition map.
- Volume format, Mac OS Extended (Journaled)
- For volume size, choose custom and then the size (in GB) of how much space Time Machine can possibly use (maximum, the image grows as data is added and subtracted).
- Click create.
- Eject the new disk image using Finder.
- Move the newly created file to the Time Machine share.
- Now, try backing up again using Time Machine it should finish the preparing step and take an hour or more to do the initial backup. Delete the file you copied to D:\shares on the WHS.
Conclusion
Congratulations, your Mac can now backup to your Home Server! Just remember, if you didn’t make a large enough sparse bundle file, Time Machine may run out of space pretty quickly. It backups very often and can use a lot of space. If you’d like, delete backups when not needed or every once and a while to save space.