Upon the most undignified death of our Macbook Pro 2.2, we have since acquired a new Macbook, running Lion. Not surprisingly, my Linux based AFP server needed an update.
Code:
Netatalk 2.2.1, from http://netatalk.sourceforge.net/.
Berkeley DB 4.8.30, from http://www.oracle.com/technetwork/database/berkeleydb/downloads/index-082944.html
After installing the code, I took the netatalk-2.2.1/distrib/initscripts/rc.atalk.redhat-sysv.tmpl file and used that to install netatalk at boot time.
My AppleVolumes.default file contains these lines:
:DEFAULT: options:upriv,usedots /data/backups Backups allow:me,root options:usedots,upriv,tm
Make sure you have a /etc/pam.d/netatalk file:
#%PAM-1.0 auth required pam_unix.so account required pam_unix.so #password required pam_cracklib.so #password required pam_unix.so use_authtok session required pam_unix.so
Using Finder, I can Go -> Connect to Server, and put in afp://server. You will need to authenticate to the server. This brings up a dialog that presents a selection of “Backups”. Going to System Preferences -> Time Machine, you can now select Backups as a backup disk. Time machine will create a sparsebundle file for you, and you are finished! I might suggest you wire up your Apple to the network for the first backup.
Links:
http://www.trollop.org/2011/07/23/os-x-10-7-lion-time-machine-netatalk-2-2/