Time Machine backup to Linux via Netatalk
- Follow the instructions in this ubuntu forum post to compile and install netatalk. After, run “echo “netatalk hold” | sudo dpkg –set-selections” to ensure that your package is not auto-upgraded (thus breaking your install).
- Edit the netatalk configuration to include your backup storage location. The file /etc/netatalk/AppleVolumes.default is where the file server paths are configured. The last line of the default config grants access to home directories and looks like: (~/ “Home Directory”). You’ll need to add a line specifying where you are storing your backups; mine looks like: (/backup/time_machine/ “Time Machine”). Note: I removed the “Home Directory” line, as in general I’m happier using CIFS(Samba) to access my network shares.
- Modify avahi/zeroconf to advertise AFP so that Mac Bonjour will see the fileserver. I followed these directions exactly.
- Each Mac user needing access to the server has to have a corresponding user on the server, and each user needs a .passwd file in their home directory. Follow these instructions for Ubuntu only as it explains the creation of the .passwd file. Note: This is not needed, as far as I can tell, so I wouldn’t do it. I don’t like the idea of having my password in plaintext on my server.
- Create a file named “.com.apple.timemachine.supported” at the root of the intended shared backup volume. (Discussed here in more detail.)
- On your Mac, open a Terminal window and type: “defaults write com.apple.systempreferences TMShowUnsupportedNetworkVolumes 1″
Comments
Pingback from Apple File Sharing AFP from Ubuntu Linux » Chris Carey Blog
Time: July 27, 2008, 7:20 pm
[...] http://holyarmy.org/2008/01/24/time-machine-backup-to-linux-via-netatalk [...]
Pingback from The Cult of Gary » Blog Archive » Time Machine, Netatalk and Error Code -6602
Time: January 8, 2009, 7:43 pm
[...] Over the Christmas break, I set time machine to backup my laptop to a USB drive attached to my Mythbuntu backend server. There are plenty of instructions out there on how to do this. I used this one. [...]
Comment from Doug
Time: November 20, 2009, 9:50 pm
Great write-up, thank you. Successfully set this up on my Debian box and Snow Leopard. No reboots were necessary.
Comment from Doug
Time: November 20, 2009, 11:07 pm
P.S. There’s some additional steps if you’re running Snow Leopard, which are outlined here: http://www.macosxhints.com/article.php?story=20090905212640957

Pingback from Time Machine con netatalk | Jompeich d’er Bisente
Time: April 25, 2008, 1:44 pm
[...] por Google hay bastantes artÃculos con distintas soluciones que a unas personas les funcionan y a otras no. Finalmente la que a mi me ha funcionado [...]