Time Machine setup for OSX Mavricks on a shared file server (Linux, windows, etc.)
-
Find out the machine name of your Mac
$ hostname
It should be something like: yourname-mbp
-
Get the abbreviated MAC address of your Mac
$ ifconfig en0 | grep ether | awk '{print $2}' | sed 's/://g'
Your result should be something like: 16ddb1d61f1a
-
Connect your Mac to the network share that you want to backup to. Examples:
smb://10.0.0.10/myshare
nfs://192.168.1.10/myshare2
-
Create a disk image on your Mac that will be your TimeMachine backup
$ hdiutil create -size 500g -type SPARSEBUNDLE -nospotlight -volname "Backup of yourname-mbp" -fs "Case-sensitive Journaled HFS+" -verbose ~/Desktop/yourname-mbp_16ddb1d61f1a.sparsebundle
- Make sure the machine name matches what you found out from #1
- Make sure the MAC address matches what you found out from #2
- You can customize the size by changing the
500g
-
Copy the
.sparsebundle
disk image from your desktop to your network share mounted in step #3. Get some coffee while it transfers over. -
Double click the
.sparsebundle
file on your network share to mount it. You should now see a mounted disk calledBackup of yourname-mbp
-
Tell your Mac that time machine should use your new disk image
$ sudo tmutil setdestination "/Volumes/Backup of yourname-mbp/"
-
Enable Time Machine!
- Goto System Prefrences -> Time Machine