You have a server that has a large disk array. You want to use that disk array for your Mac backups. Fortunately, Mac OSX has this nice utility named Time Machine which makes backing up and restoring your computer really easy. However, unfortunately, you need a physical disk or a Apple labeled networking product. This article is about bypassing that so that you can use your existing Linux and file storage backbone as your Time Machine disk.


I’m using Debian Squeeze 6.0, it should be somewhat similar across Ubuntu and other versions of Debian. I’ll mention all the version numbers of software that was installed.

Installing Avahi

Avahi handles zeroconf, this means that it’ll show up in the finder without you needing to do anything.

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

Installing netatalk

Unfortunately, we need a really specific version of netatalk that isn’t in the repositories. Specifically, I used netatalk-2.2.2

sudo apt-get build-dep netatalk
sudo apt-get install build-essential
wget "" -O netatalk-2.2.2.tar.gz
tar -xvf netatalk-2.2.2.tar.gz
cd netatalk-2.2.2
./configure --enable-debian
sudo make install


netatalk is a filing protocol that has advanced features that are required by Mac OSX’s Time Machine. However, it doens’t really play nice with Mac, so we want it to be broadcasted with Avahi so that way configuring Time Machine is a matter of double clicking.

Directory setup

Make sure you create your directory where you’ll store your Time Machine backups.

sudo mkdir /mnt/raid/timemachine
chmod 770 /mnt/raid/timemachine
chown www-data:staff /mnt/raid/timemachine


We need netatalk to recognize the folder as a Time Machine folder and accept advanced commands given by the Time Machine client

Add the following line to /usr/local/etc/netatalk/AppleVolumes.default

/mnt/raid/timemachine "Time Machine" cnidscheme:dbd options:usedots,upriv,tm


Avahi needs to constantly broadcast to the network about netatalk for easy setup.

Add the following file afpd.service to /etc/avahi/services

<name replace-wildcards=”yes”>%h</name>

Finishing up

Restart the services.

sudo service netatalk restart
sudo service avahi restart