time machine on unsupported volumes

defaults write com.apple.systempreferences TMShowUnsupportedNetworkVolumes 1

#!/bin/bash

MACADDRESS=`ifconfig en0 | grep ether | cut -d ” ” -f 2 | sed ‘s/://g’`

MACHINENAME=`hostname -s`

hdiutil create -size 500g -fs HFS+J -type SPARSEBUNDLE -layout SPUD -volname “Backup of $MACHINENAME” $MACHINENAME_$MACADDRESS.sparsebundle