OS X time machine backup to NAS

1 minute read Published:

http://code.stephenmorley.org/articles/time-machine-on-a-network-drive/

http://wiki.qnap.com/wiki/How_to_setup_your_QNAP_NAS_with_Apple_Time_Machine

HN=hostname | cut -f1 -d.;MA=ifconfig en0 | egrep ether | sed "s|:||g" | cut -f2 -d' ';hdiutil create -size 450g -fs HFS+J -volname “TM_$HN” $HN_$MA.sparsebundle

alanna:~ stefan$ HN=hostname | cut -f1 -d.;MA=ifconfig en0 | egrep ether | sed "s|:||g" | cut -f2 -d' ';hdiutil create -size 350g -fs HFS+J -volname “TM_$HN” $HN_$MA.sparsebundle created: /Users/stefan/alanna_80e650223d42.sparsebundle alanna:~ stefan$

select time machine backup

rsync -aE alanna_80e650223d42.sparsebundle /Volumes/alanna/

rm -rf alanna_80e650223d42.sparsebundle

Recent posts
- full list -