Cauwenbergh.be weblog

« | Home

Ubuntu 11.04 setting up Mac OS Time Machine server

By Robin | juni 12, 2011

Since i don’t want to give all the money to Apple and want some great backup, i found that Ubuntu (even on Openvz) can work as a Time Machine drive!

So here is what i have done:


# sudo apt-get install netatalk

After this i have added a line in /etc/netatak/AppleVolumes.default like this:

/backup/TimeMachine “TimeMachine” options:tm

Now we have to install avahi-daemon:

# sudo apt-get install avahi-daemon

One installed we have to create a file /etc/avahi/services/afpd.service with the following content:


<service-group>
<name replace-wildcards=”yes”>%h</name>
<service>
<type>_afpovertcp._tcp</type>
<port>548</port>
</service>
<service>
<type>_device-info._tcp</type>
<port>0</port>
<txt-record>model=Xserve</txt-record>
</service>
</service-group>

 

And now restart both services:

# sudo service netatalk restart
# sudo service avahi-daemon restart

Now you can access the share by your mac, if not you have to typ the following on CLI as root:

# defaults write com.apple.systempreferences TMShowUnsupportedNetworkVolumes 1

Topics: No Category | 1 Comment »

One Response to “Ubuntu 11.04 setting up Mac OS Time Machine server”

  1. Patrick Says:
    juni 13th, 2011 at 14:05

    Hi Robin,

    netatalk allows also “supported” time machine volumes. You need to touch .com.apple.timemachine.supported on that particular volume (on the ubuntu machine).

    Patrick

Comments