How to... TimeMachine under Ubuntu
-
- Posts: 60
- Joined: Wed Nov 21, 2018 2:27 am
- languages_spoken: english
- ODROIDs: Odroid H2 Rev B
- Has thanked: 6 times
- Been thanked: 14 times
- Contact:
How to... TimeMachine under Ubuntu
Hi:
Quick guide and notes to setup a TimeMachine server under Ubuntu + Docker to backup macOS.
This guide works well under Ubuntu 18.04 LTS
First, get a full drive or partition formatted with ext4 and mount to /mnt/timemachine
Install Docker :
https://docs.docker.com/install/linux/docker-ce/ubuntu/
This configured container has all ready to rock:
https://hub.docker.com/r/mbentley/timemachine
Simply download with :
docker pull mbentley/timemachine
Run with (update the host path if you have a different place to store your backups) :
docker run -d --restart=unless-stopped \
--net=host \
--name timemachine \
-e CUSTOM_AFP_CONF="false" \
-e CUSTOM_USER="false" \
-e LOG_LEVEL="info" \
-e MIMIC_MODEL="TimeCapsule6,106" \
-e TM_USERNAME="timemachine" \
-e TM_GROUPNAME="timemachine" \
-e TM_UID="1000" \
-e TM_GID="1000" \
-e PASSWORD="timemachine" \
-e SET_PERMISSIONS="false" \
-e SHARE_NAME="TimeMachine" \
-e VOLUME_SIZE_LIMIT="0" \
-v /mnt/timemachine:/opt/timemachine \
-v timemachine-netatalk:/var/netatalk \
-v timemachine-logs:/var/log/supervisor \
mbentley/timemachine:latest
Also note, the VOLUME_SIZE_LIMIT didn't work for me when setup as 0.
I had to enter the space of the partition in Megabytes. So, if you have 256GBs available, enter 262144
Tip to speed up backups:
https://www.imore.com/how-speed-your-ti ... ne-backups
Hope this helps somebody out there.
Enjoy!
Quick guide and notes to setup a TimeMachine server under Ubuntu + Docker to backup macOS.
This guide works well under Ubuntu 18.04 LTS
First, get a full drive or partition formatted with ext4 and mount to /mnt/timemachine
Install Docker :
https://docs.docker.com/install/linux/docker-ce/ubuntu/
This configured container has all ready to rock:
https://hub.docker.com/r/mbentley/timemachine
Simply download with :
docker pull mbentley/timemachine
Run with (update the host path if you have a different place to store your backups) :
docker run -d --restart=unless-stopped \
--net=host \
--name timemachine \
-e CUSTOM_AFP_CONF="false" \
-e CUSTOM_USER="false" \
-e LOG_LEVEL="info" \
-e MIMIC_MODEL="TimeCapsule6,106" \
-e TM_USERNAME="timemachine" \
-e TM_GROUPNAME="timemachine" \
-e TM_UID="1000" \
-e TM_GID="1000" \
-e PASSWORD="timemachine" \
-e SET_PERMISSIONS="false" \
-e SHARE_NAME="TimeMachine" \
-e VOLUME_SIZE_LIMIT="0" \
-v /mnt/timemachine:/opt/timemachine \
-v timemachine-netatalk:/var/netatalk \
-v timemachine-logs:/var/log/supervisor \
mbentley/timemachine:latest
Also note, the VOLUME_SIZE_LIMIT didn't work for me when setup as 0.
I had to enter the space of the partition in Megabytes. So, if you have 256GBs available, enter 262144
Tip to speed up backups:
https://www.imore.com/how-speed-your-ti ... ne-backups
Hope this helps somebody out there.
Enjoy!
Odroid H2 Rev B, 16GB Ripjaws, MP510 Corsair 512GB Nvme
- meveric
- Posts: 11805
- Joined: Mon Feb 25, 2013 2:41 pm
- languages_spoken: german, english
- ODROIDs: X2, U2, U3, XU-Lite, XU3, XU3-Lite, C1, XU4, C2, C1+, XU4Q, HC1, N1, Go, H2 (N4100), N2, H2 (J4105), GoA, C4, GoA v1.1, H2+, HC4, GoS
- Has thanked: 75 times
- Been thanked: 577 times
- Contact:
Re: How to... TimeMachine under Ubuntu
The docker container does nothing but downloading the sourceforge netatalk project, compile it and run it with some configs.
Instead you could also do the same by just installing netatalk from your OS, as it's part of Ubuntu and Debian.
Configure it the way you want, and run it directly on your Ubuntu installation rather than having it in a Docker container.
It's similar to "samba", just from "apple". So you have the server running, have a shared folder and use that to connect your timemachine to.
It's like a Samba shared folder where you connect to, just rather than Samba it's apples protocol.
Instead you could also do the same by just installing netatalk from your OS, as it's part of Ubuntu and Debian.
Configure it the way you want, and run it directly on your Ubuntu installation rather than having it in a Docker container.
It's similar to "samba", just from "apple". So you have the server running, have a shared folder and use that to connect your timemachine to.
It's like a Samba shared folder where you connect to, just rather than Samba it's apples protocol.
Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.
-
- Posts: 60
- Joined: Wed Nov 21, 2018 2:27 am
- languages_spoken: english
- ODROIDs: Odroid H2 Rev B
- Has thanked: 6 times
- Been thanked: 14 times
- Contact:
Re: How to... TimeMachine under Ubuntu
Having the container I don’t need to setup anything on the host or ever configure anything else.
Got transmission and minidlna the same way and works perfect with zero headaches or setup.
Got transmission and minidlna the same way and works perfect with zero headaches or setup.
Odroid H2 Rev B, 16GB Ripjaws, MP510 Corsair 512GB Nvme
- meveric
- Posts: 11805
- Joined: Mon Feb 25, 2013 2:41 pm
- languages_spoken: german, english
- ODROIDs: X2, U2, U3, XU-Lite, XU3, XU3-Lite, C1, XU4, C2, C1+, XU4Q, HC1, N1, Go, H2 (N4100), N2, H2 (J4105), GoA, C4, GoA v1.1, H2+, HC4, GoS
- Has thanked: 75 times
- Been thanked: 577 times
- Contact:
Re: How to... TimeMachine under Ubuntu
If you're fine with wasting system resources by running several docker container,
Taking the risk of running software without security patches,
And never want to learn how to setup even the simplest things under Linux,
then yes Docker is a easy way to do things.
It's was more meant as comment, that it can be done without docker, for those who don't want to do it that way
Taking the risk of running software without security patches,
And never want to learn how to setup even the simplest things under Linux,
then yes Docker is a easy way to do things.
It's was more meant as comment, that it can be done without docker, for those who don't want to do it that way

Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.
-
- Posts: 60
- Joined: Wed Nov 21, 2018 2:27 am
- languages_spoken: english
- ODROIDs: Odroid H2 Rev B
- Has thanked: 6 times
- Been thanked: 14 times
- Contact:
Re: How to... TimeMachine under Ubuntu
You didn't post a guide on how to do it step by step.
Resources are wasted when not used but not wasted when not used.
You don't know what I know or what a simple thing is or not for everyone.
Everything can be done without Docker. Perhaps you are wasting time setting and maintaining all that yourself.
Some people might not have time to waste and they'd prefer to use Docker to simplify setup.
You haven't helped anyone with your comment, start by doing that sharing here how to do that setup in Ubuntu.
Resources are wasted when not used but not wasted when not used.
You don't know what I know or what a simple thing is or not for everyone.
Everything can be done without Docker. Perhaps you are wasting time setting and maintaining all that yourself.
Some people might not have time to waste and they'd prefer to use Docker to simplify setup.
You haven't helped anyone with your comment, start by doing that sharing here how to do that setup in Ubuntu.
Odroid H2 Rev B, 16GB Ripjaws, MP510 Corsair 512GB Nvme
- mad_ady
- Posts: 10643
- Joined: Wed Jul 15, 2015 5:00 pm
- languages_spoken: english
- ODROIDs: XU4 (HC1, HC2), C1+, C2, C4 (HC4), N1, N2, H2, Go, Go Advance, M1
- Location: Bucharest, Romania
- Has thanked: 645 times
- Been thanked: 915 times
- Contact:
Re: How to... TimeMachine under Ubuntu
Uhh, we're starting the big Docker debate... Maybe we should have it in a new thread 
https://r.tapatalk.com/shareLink/topic? ... source=app
Docker - the good, the bad and the ugly

https://r.tapatalk.com/shareLink/topic? ... source=app
Docker - the good, the bad and the ugly
-
- Posts: 220
- Joined: Thu Mar 28, 2019 8:57 pm
- languages_spoken: english
- ODROIDs: 4 x H2, 1 x H2+
- Has thanked: 74 times
- Been thanked: 25 times
- Contact:
Re: How to... TimeMachine under Ubuntu
FWIW I run TimeMachine to an HC1, I just followed the instructions here:
http://netatalk.sourceforge.net/wiki/in ... .04_Bionic
That first bit to install the prerequesistes is
http://netatalk.sourceforge.net/wiki/in ... .04_Bionic
That first bit to install the prerequesistes is
Code: Select all
sudo apt install build-essential libevent-dev libssl-dev libgcrypt-dev libkrb5-dev \
libpam0g-dev libwrap0-dev libdb-dev libtdb-dev libmysqlclient-dev avahi-daemon \
libavahi-client-dev libacl1-dev libldap2-dev libcrack2-dev systemtap-sdt-dev libdbus-1-dev \
libdbus-glib-1-dev libglib2.0-dev libio-socket-inet6-perl tracker libtracker-sparql-2.0-dev \
libtracker-miner-2.0-dev
- meveric
- Posts: 11805
- Joined: Mon Feb 25, 2013 2:41 pm
- languages_spoken: german, english
- ODROIDs: X2, U2, U3, XU-Lite, XU3, XU3-Lite, C1, XU4, C2, C1+, XU4Q, HC1, N1, Go, H2 (N4100), N2, H2 (J4105), GoA, C4, GoA v1.1, H2+, HC4, GoS
- Has thanked: 75 times
- Been thanked: 577 times
- Contact:
Re: How to... TimeMachine under Ubuntu
Exactly and for me for example it's much easier to do a
apt install transmission-gtk
then setting up a docker environment to download a docker container to run transmission and an additional webserver to control transsmission with it, when the OS already comes with several graphical interfaces for transmission and a single line to install it.But as you said, what is "simple" is different for everyone.
And I didn't say they couldn't even if you make it sound that way.
I was just saying it works without docker as well, for those who want to use it without.
If you feel personally attacked only cause I said there are other ways to achieve the same, then I'm sorry if that upset you.
Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.
-
- Posts: 1
- Joined: Thu Apr 26, 2018 10:21 pm
- languages_spoken: german
- ODROIDs: HC-1
- Has thanked: 1 time
- Been thanked: 0
- Contact:
Re: How to... TimeMachine under Ubuntu
Thank you so much, this works well for me on XU4 Ubuntu 20.04.4 LTS
Who is online
Users browsing this forum: No registered users and 1 guest