MacOS X Time Machine NAS setup

Saturday, 16th August, 2008

Care of my one of my co workers James Murty;

Tell Time Machine to see network shares as backup destinations by running the following command in the terminal:

defaults write com.apple.systempreferences TMShowUnsupportedNetworkVolumes 1

Lookup and save your machine's settings (in the terminal)

HOST= `hostname -s `

MAC= `ifconfig en0 | sed -n -e "s/.*ether \(.*\)/\1/p" | tr -d : `

Decide how much backup space you will need in total (eg 100G, 200G) and run the following command in the terminal, replacing the 100G argument with the size you want

hdiutil create -size 100G -fs HFS+J -type SPARSEBUNDLE -volname "Backup" ~/Desktop/$HOST_$MAC.sparsebundle

Browse to the server in the Finder

In the Finder, copy the new file on your Desktop (it will be a sparse image named after your computer) to the backup volume you just opened.

Open Time Machine in system preferences, select "Change disk..." and choose the backup location you just copied the sparsebundle too. Click "Backup Now" from the menu in the menu bar.