how to create sparsebundle image file in Mac OSX


if [ ! -n “$2” ]; then
echo $0: machine_name MACid
exit 1

hdiutil create -size 80G -type SPARSEBUNDLE
-imagekey sparse-band-size=65536
-fs HFS+J
-volname “Backup $1”

Above is to create a sparsebundle file required for Time Machine backup to remote afp

How to enable Time Machine on unsupported volumes

defaults write TMShowUnsupportedNetworkVolumes 1

use control-click of TimeMachine preference to select the hidden mounted point