I do not own a Time Capsule, I do not plan to get one, nor do i want to connect a usb disk every time i feel like making a backup of my stuff. What i do have however is a wireless network and a Windows 7 PC. Why not use the available disk space in my PC for the backups of my Macbook Pro? I found out how to Time Machine Backup to a Network Drive…

In Snow Leopard it was still possible with a few tweaks and manual image file creation to get the OS to actually backup over the Network onto a Windows NTFS disk. Hoozah! In Lion (MacOSX 10.7.2) there is even another step required to get the backup process running. Using just step 1 it will fail with the message ‘The network backup disk does not support the required AFP features’.

1. So besides the same steps as in Snow Leopard to prepare the Backup Image File (my previous post) you will also need to…

2. Download and run the script from this file to modify backupd in such a way that it accepts remote disk on the network share: backupd_anyafp_r2 – just unpack and run ./install.sh from the terminal.

Thanks to msft.guy for the script!

PS: I still get the feeling that the backup of a FileVault encrypted home directory even on Lion still doesn’t work while being logged in. Meh.

Correction: I had to switch to FileVault2. Now the whole disk is encrypted and my guess is Time Machine can handle that…

What if I still can’t find my share in TimeMachine?
(added 24. Jan. 2013)

Here is a checklist what I would try then:

  1. close the preferences or even reboot after running the script above.
  2. Find out your Computer Name:
    1. Go to Apple menu > System Preferences and click Sharing.
    2. Note the computer name appearing at the top of the window.
      – For example “ZergasMacbook”.
  3. Find your MAC address:
    1. In Apple menu, select System Preferences...
    2. From the View menu in System Preferences, select Network.
    3. In the left column of the Network preference window that opens, click the name of your connection ( Ethernet or Built-in Ethernet).
    4. Click the Advanced... button, and in the dropdown, click the Hardware or Ethernet tab.
    5. The address is the string of letters and numbers next to “MAC Address:” or “Ethernet ID:”.
      – For example “00:15:20:aa:fe:a1”.
  4. Create your sparsebundle:
    1. Follow the steps described in my guide: Create a sparsebundle on your Mac manually with the name “ComputerName_MACaddressWithoutColons.sparsebundle” and move it into the shared folder on the windows machine.
      – In the case of the examples above it would be “ZergasMacbook_001520aafea1.sparsebundle”.
  5. Connect to the share:
    1. On your Mac, in Finder go to the menu Go -> Connect to Server…
    2. Choose the share with the sparsebundle in it on your Windows computer. The share will now be mounted under Volumes with the name of the share folder you gave in windows.
      – For example let’s call the directory “MacBackup” on the computer “WindowsPC” then you a folder on your Mac called “/Volumes/MacBackup”.
  6. Mount the sparsebundle:
    1. Open a terminal and mount the sparsebundle as a drive under /Volumes on your mac by typing: hdiutil attach -verbose /Volumes/MacBackup/ZergasMacbook_001520aafea1.sparsebundle
      You can also just double-click on it to mount (thanks, mike!).
  7. Connect the sparsebundle:
    1. Now add the sparsebundle as the Time Machine destination with the terminal by typing: sudo tmutil setdestination /Volumes/mounted_sparse_bundle
  8. Then try starting the preferences and go to TimeMachine looking for the sparsebundle again.

BTW: In the terminal you can hit TAB and OSX will complete the name of a file or folder you were about to write. Like this you dont have to type all the sparsebundle file name.

Good luck!

You might also like: