Backup the Mac on Ubuntu

I backup my MacBook using Time Machine. But the storage is available from a Linux (Ubuntu 16.04) workstation. Here’s how to publish some storage to provide backup space to the Mac.

First of all, the storage space has to be published as an AFP file share. This is done using Netatalk ; a freely-available Open Source AFP fileserver.

# sudo apt install netatalk

Then, configure the share by adding its reference.

# sudo vim /etc/netatalk/AppleVolumes.default
(...)
/volume/external/TimeMachine "Time Machine" allow:user1 options:tm,usedots,upriv

And restart the service

# sudo service netatalk restart

From there, start the Time Machine preference panel. Select the drive and go-go-go!

PS: Not sure how this matters but I had “Show Unsupported Network Volumes” configured ; while trying to set up Time Machine over SMB. The Mac command line was:

# defaults write com.apple.systempreferences TMShowUnsupportedNetworkVolumes 1

3 Comments

  • Jozsef Hegedus Wed, 25 Oct 2017 16:41:07 +0000 Reply

    Which Mac version was this ?

    • Joel Carnat Tue, 31 Oct 2017 14:24:40 +0000 Reply Author

      I guess it was MacOS Sierra.

  • Jozsef Hegedus Wed, 25 Oct 2017 16:41:54 +0000 Reply

    Was it sierra ? It does not work for me on sierra.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

%d bloggers like this: