How to... TimeMachine under Ubuntu

Post Reply
puremind
Posts: 53
Joined: Wed Nov 21, 2018 2:27 am
languages_spoken: english
ODROIDs: Odroid H2 Rev B
Has thanked: 3 times
Been thanked: 10 times
Contact:

How to... TimeMachine under Ubuntu

Unread post by puremind » Mon Nov 04, 2019 7:52 pm

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
2019-11-04 at 10.45.10.png
2019-11-04 at 10.45.10.png (63.54 KiB) Viewed 297 times

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
2019-11-04 at 10.50.04.png
2019-11-04 at 10.50.04.png (88.36 KiB) Viewed 297 times
Tip to speed up backups:
https://www.imore.com/how-speed-your-ti ... ne-backups


Hope this helps somebody out there.

Enjoy!
These users thanked the author puremind for the post:
rooted (Tue Nov 05, 2019 1:26 am)
Odroid H2 Rev B, 16GB Ripjaws, MP510 Corsair 512GB Nvme

User avatar
rooted
Posts: 6761
Joined: Fri Dec 19, 2014 9:12 am
languages_spoken: english
Location: Gulf of Mexico, US
Has thanked: 205 times
Been thanked: 41 times
Contact:

Re: How to... TimeMachine under Ubuntu

Unread post by rooted » Tue Nov 05, 2019 1:27 am

Thanks for sharing the how-to, I'm sure it will be useful.

User avatar
meveric
Posts: 10524
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)
Has thanked: 17 times
Been thanked: 148 times
Contact:

Re: How to... TimeMachine under Ubuntu

Unread post by meveric » Wed Nov 06, 2019 5:16 pm

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.
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.

puremind
Posts: 53
Joined: Wed Nov 21, 2018 2:27 am
languages_spoken: english
ODROIDs: Odroid H2 Rev B
Has thanked: 3 times
Been thanked: 10 times
Contact:

Re: How to... TimeMachine under Ubuntu

Unread post by puremind » Thu Nov 07, 2019 6:01 am

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.
Odroid H2 Rev B, 16GB Ripjaws, MP510 Corsair 512GB Nvme

User avatar
meveric
Posts: 10524
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)
Has thanked: 17 times
Been thanked: 148 times
Contact:

Re: How to... TimeMachine under Ubuntu

Unread post by meveric » Thu Nov 07, 2019 4:06 pm

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 :)
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.

puremind
Posts: 53
Joined: Wed Nov 21, 2018 2:27 am
languages_spoken: english
ODROIDs: Odroid H2 Rev B
Has thanked: 3 times
Been thanked: 10 times
Contact:

Re: How to... TimeMachine under Ubuntu

Unread post by puremind » Thu Nov 07, 2019 5:06 pm

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.
Odroid H2 Rev B, 16GB Ripjaws, MP510 Corsair 512GB Nvme

User avatar
mad_ady
Posts: 6780
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, N1, H2, N2
Location: Bucharest, Romania
Has thanked: 215 times
Been thanked: 163 times
Contact:

Re: How to... TimeMachine under Ubuntu

Unread post by mad_ady » Thu Nov 07, 2019 9:34 pm

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

powerful owl
Posts: 105
Joined: Thu Mar 28, 2019 8:57 pm
languages_spoken: english
ODROIDs: 6 x HC1, H2
Has thanked: 20 times
Been thanked: 9 times
Contact:

Re: How to... TimeMachine under Ubuntu

Unread post by powerful owl » Fri Nov 08, 2019 12:33 am

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

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 

User avatar
meveric
Posts: 10524
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)
Has thanked: 17 times
Been thanked: 148 times
Contact:

Re: How to... TimeMachine under Ubuntu

Unread post by meveric » Fri Nov 08, 2019 5:33 pm

puremind wrote:
Thu Nov 07, 2019 5:06 pm
You don't know what I know or what a simple thing is or not for everyone.
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.
puremind wrote:
Thu Nov 07, 2019 5:06 pm
Some people might not have time to waste and they'd prefer to use Docker to simplify setup.
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.

Post Reply

Return to “Ubuntu”

Who is online

Users browsing this forum: No registered users and 2 guests