How to configure Netatalk on Ubuntu to be TimeMachine Server

Seems Pretty Straight Forward:

sudo apt-get update
sudo apt-get install netatalk
sudo apt-get install avahi-daemon

Add:

/huge/TimeMachine "TimeMachine" options:tm to

/etc/netatalk/AppleVolumes.default

Create /etc/avahi/services/afpd.service with contents:

<service-group><br />
<name replace-wildcards=”yes”>%h</name><br />
<service><br />
<type>_afpovertcp._tcp</type><br />
<port>548</port><br />
</service><br />
<service><br />
<type>_device-info._tcp</type><br />
<port>0</port><br />
<txt-record>model=Xserve</txt-record><br />
</service><br />
</service-group>

Restart everything:

sudo service netatalk restart && sudo service avahi-daemon restart