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 TMShowUnsupportedNetworkVolumes 1

Author: Joel Carnat

@work Technical Architect and SysAdmin ; @home OpenBSD and FOSS, Karate, Kobudō, Jōdō, Bodyweight workout, Photography & Music

3 thoughts on “Backup the Mac on Ubuntu”

Leave a Reply

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


This site uses Akismet to reduce spam. Learn how your comment data is processed.