Time Machine Backups to Debian/Ubuntu
Introduction
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.
Installation
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.
Installing netatalk
Unfortunately, we need a really specific version of netatalk that isn’t in the repositories. Specifically, I used netatalk-2.2.2
Configuration
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.
netatalk
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
Avahi
Avahi needs to constantly broadcast to the network about netatalk for easy setup.
Add the following file afpd.service
to /etc/avahi/services
Finishing up
Restart the services.