Wednesday, December 16, 2009

Time Machine and Freebsd

Getting Apple Time Machine to talk to Freebsd has never been easier. Netatalk 2.0.5 has direct TM support now! Here are the steps I used. Note TM does not need apple talk or avahi.

  1. cd /usr/ports/net/netatalk
  2. make install
  3. Add the following lines to /etc/rc.conf
  4. netatalk_enable="YES"
    afpd_enable="YES"
    cnid_metad_enable="YES"
  5. Make a time machine directory (for example, /home/mike/TimeMachine), make sure it is read/writable by the time machine account you will use
  6. Then the following line in /usr/local/etc/AppleVolumes.default: "/home/mike/TimeMachine TimeMachine allow:mike cnidscheme:cdb options:usedots,upriv,tm"
  7. Connect to your new server through finder using the url "afs://(YOUR SEVER IP)"
  8. Load-up Time machine and it should see your time machine share
  9. Time Machine makes an afs mount, it should work. It was a little flaky for me.
  10. Afterwards TM has backed-up reliably every hour when i am in wifi range or connected to the Ethernet