Time Machine on unsupported NAS

To use an unsupported NAS as a Time Machine some configurations have to be made so it runs OK.

  • Enable unsupported NAS on TimeMachine with Terminal: “defaults write com.apple.systempreferences TMShowUnsupportedNetworkVolumes 1
  • Gather MAC Address of the Mac that will be used as a source of Time Machine Backups from Terminal: “ifconfig en0 | grep ether | awk ‘{print $2}’ | sed ‘s/://g’
  • Create a new sparsebundle file where the Time Machine backups will be archived via Terminal, replacing the appropriate fields of size,  <computer name>, is better to use a single word computer name (on Sharing option from Preferences) and <MAC Address>: “sudo hdiutil create -size <SIZE>g -type SPARSEBUNDLE -nospotlight -volname “Backup of <COMPUTER NAME>” -fs “Case-sensitive Journaled HFS+” -verbose ~/Desktop/<COMPUTER NAME>_<MAC ADDRESS>.sparsebundle“. It is recommended to use small size like 1G and resize later, in case to use full size now omit the next step.
  • Open the new created image file with Disk Utility and click on Resize Image, be careful to unroll the arrow and select “Only image size”, insert new size and click Resize. Now mount image and select Partitions tab, select create 1 partition of the dropdown menu and apply, when finished you can unmount the image.
Expand - Resize Image
Expand - New Size
  • To prevent the automatic resize of the file done by TimeMachine, use this command in Terminal App: “chflags uchg /Volumes/TimeMachine/<COMPUTER NAME>_<MAC ADDRESS>.sparsebundle/Info.*” Replacing <COMPUTER NAME> and <MAC ADDRESS> like before.
  • Now copy the sparsebundle file to the desired location of the NAS.
  • Open TimeMachine preferences and click to use the shared folder where the file image have been copied, TimeMachine will ask for the login information to the NAS and select save so it will not be asked again.

With all this TimeMachine should be running up.