Showing results for ubuntu time machine server
Search instead for ubuntu timemachine server

It turns out there is a fairly good guide for this at Ultimate Guide to Configuring Samba for Time Machine Backups on Debian Servers. However, it is missing one critical step. One also needs ea support = yes in the [Global] section. Once I added that, the following configuration works:

[Global]
...
# MacOS compatibility                                                                                                                  
ea support = yes
security = user
wide links = yes
unix extensions = no
vfs object = acl_xattr catia fruit streams_xattr
fruit:nfc_aces = no
fruit:aapl = yes
fruit:model = MacSamba
fruit:posix_rename = yes
fruit:metadata = stream
fruit:delete_empty_adfiles = yes
fruit:veto_appledouble = no
spotlight = yes

[TIMEMACHINEBACKUPS]
comment = Time Machine Backups
path = /tmbackups
available = yes
writable = yes
guest ok = no
valid users = samba
browsable = yes
vfs objects = catia fruit streams_xattr
fruit:time machine = yes
fruit:time machine max size = 9T

Of course, modify path and max size to your setup and share name and user as desired.

Answer from Peter N. Steinmetz on serverfault.com
🌐
Reddit
reddit.com › r/homelab › using a ubuntu pc as a macos time machine backup target
r/homelab on Reddit: Using a Ubuntu PC as a macOS Time Machine backup target
December 15, 2024 -

I’ve been reading many helpful guides out there but I’ve struggled to find one that’s a) recent, as in less than a year old; and b) written in a way that a 5 year old might understand.

What’s I’m after is people’s recommendations, and a fairly simple set of instructions to help me use my Homelab (a Ubuntu PC) as a target for macOS Time Machine backups.

My setup:

  • repurposed 2014 Mac Mini running Ubuntu 24.04.1 LTS (this will be the target server)

  • a 2 or 4TB USB 3.1 HDD (not yet purchased: this will be the target drive)

  • an M1 iMac running the latest macOS

  • an eero wireless network (which I plan to add wired backhaul to in the future)

Simply put, I want to add the HDD to the old Mac Mini running Ubuntu, and choose that HDD as the Time Machine destination.

Any recommendations on HDD drives?

Any helpful instructions on what settings / commands I need to run on the Linux PC so that the drive is exposed to macOS as a Time Machine destination?

Your help’s appreciated.

🌐
DEV Community
dev.to › ea2305 › time-machine-backup-with-your-home-server-1lj6
Time-machine backup with your home server. - DEV Community
August 10, 2022 - Open select disk and find our new SAMBA Server to start with the backup process. After the connection the time-machine will take some time to perform the first backup (4hrs in my case), but, I was able to be testing the consistency of this implementation and so far the time-machine backups look good, the subsequent updates were way more faster and the file is stored safely in the disk in our server.
🌐
OneUptime
oneuptime.com › home › blog › how to configure samba for macos time machine backups on ubuntu
How to Configure Samba for macOS Time Machine Backups on Ubuntu
March 2, 2026 - [global] # Basic server settings workgroup = WORKGROUP server string = Ubuntu Backup Server server role = standalone server # Enable Apple Extensions for Time Machine support fruit:metadata = stream fruit:model = MacSamba fruit:veto_appledouble = no fruit:wipe_intentionally_left_blank_rfork = yes fruit:delete_empty_adfiles = yes # Security settings security = user encrypt passwords = yes passdb backend = tdbsam # Logging log file = /var/log/samba/log.%m max log size = 1000 logging = file [TimeMachine] # Share path - adjust to your backup directory path = /mnt/backup/timemachine valid users = t
🌐
Dgross
dgross.ca › blog › linux-time-machine-server
Linux-based Time Machine backup server using Netatalk and ZFS
March 15, 2023 - sudo apt update && sudo apt install zfsutils-linux sudo zpool create \ -m /backup \ -O atime=off \ -O dnodesize=auto \ -O acltype=posixacl \ -O xattr=sa \ -O setuid=off \ -O exec=off \ -O devices=off \ backup /dev/sda sudo zfs create \ -o encryption=on \ -o keylocation=prompt \ -o keyformat=passphrase \ -o compression=lz4 \ backup/encrypted sudo zfs create \ -o compression=zle \ backup/time-machine sudo zfs create backup/time-machine/mbp sudo zfs create backup/time-machine/mba
🌐
Apple Community
discussions.apple.com › thread › 254943942
ventura time machine with ubuntu server - Apple Community
June 25, 2023 - Does it mean that TM officially does not support network servers? Or there are some "official" ways to connect? No. You keep referencing netatalk. The 1990's are over. Any files corrupted by netatalk have been long since deleted. Time Machines uses SMB. However, even your Ubuntu version if 5 years old.
Find elsewhere
🌐
Sarah Robin
sarah-robin.com › blog › ultimate-guide-samba-time-machine-backups
Ultimate Guide to Configuring Samba for Time Machine Backups on Debian Servers | Blog | Sarah Robin
November 1, 2024 - Many Apple users with home servers or NAS systems running on Linux often find that getting macOS devices to communicate seamlessly with these systems can be challenging. Samba provides an ideal solution, allowing Linux-based file servers to offer macOS-compatible shares, including Time Machine backup targets.
Top answer
1 of 1
1

This answer explains things for a Windows-based server, but it should work fine for Ubuntu.

  1. In Terminal, type the following command:

    defaults write com.apple.systempreferences TMShowUnsupportedNetworkVolumes 1

  2. Now, as long as you have a connection to your computer’s shared drive, you should be able to see it in Time Machine.

  3. To connect to that shared drive: Finder > Go > Connect to Server.

  4. Type in the IP address or host name of the server. You may be prompted to log in.

  5. Configure Time Machine to use the drive, and try creating a backup.

  6. Time Machine will try to create a “sparse bundle” on the drive, and will fail.

  7. Open Console and check system.log. You will see the name of the file Time Machine was trying to create. The name of the file will be something like .MacBook Pro_00254bd7abe8.sparsebundle

  8. You will need to create a sparse bundle with this name and put it on the hard drive manually before the backups will work. To do this, open Disk Utility.

  9. Click New Image > Set image format as “sparse bundle disk image” > Set partition map to “no partition map” > Set the size as the maximum size you are willing to allot to Time Machine. Don’t modify anything else.

  10. Though the file on the hard drive will need to begin with a period, you will not be able to do this right away through Disk Utility, so just call it whatever you want right now.

  11. You can rename the file so that it has a period before its name from Terminal on OS X or Ubuntu. Your final name should be like .MacBook Pro_00254bd7abe8.sparsebundle.

  12. If everything is done right, you should now be able to use Time Machine with an Ubuntu Server.

Note: This answer was copied from MacRumors and has been formatted for AskDifferent. I’ve used this method myself, albeit on a Windows shared drive.

🌐
mtlynch.io
mtlynch.io › budget-nas
Building a Budget Homelab NAS Server (2022 Edition) · mtlynch.io
May 13, 2025 - How I chose parts, built, and configured my first custom home storage server.
🌐
Ubuntu
ubuntu.com › tutorials › install-ubuntu-server
Install Ubuntu Server | Ubuntu
There is also a field for importing SSH keys, either from Launchpad, Ubuntu One or Github. You simply need to enter the username and the installer will fetch the relevant keys and install them on the system ready for use (e.g. secure SSH login to the server).
🌐
Kev's Robots
kevsrobots.com › blog › timemachine.html
Raspberry Pi Time machine
May 6, 2024 - How to setup a Raspberry Pi as a Time Machine backup server for your Mac.
🌐
kirbblog
adamdemasi.com › 2018 › 03 › 24 › using-samba-as-a-time-machine-network-server.html
Using Linux or Windows as a Time Machine network server · kirbblog
March 24, 2018 - Optionally, the spotlight module, which builds a Spotlight search index on the server to speed up discovery of files in the backup, and · Avahi, a multicast (aka Bonjour) daemon for Linux, used here to allow Macs on the network to discover the Time Machine share. Importantly, Avahi support is intentionally disabled in Debian and Ubuntu’s builds of Samba, and Spotlight support is not enabled.
🌐
Lowtek
lowtek.ca › roo › 2009 › ubuntu-with-apples-time-machine
Ubuntu with Apple’s Time Machine – Roo's View
February 23, 2009 - @Geremia – The link you provide seems to be about accessing a time machine backup on a Linux box. That is something completely different. @iTimOSX – you need to log into your iMac using your OSX username and password, not your Ubuntu user/password. Hi I have a similar issue as iTimOSX. I can see the bonjour/avahi server in my mac mini but when I select it is asks me for a user id and password, when I supply the user id from my Ububtu machine and password it tels me it is not correct but I know 100% sure it is.
🌐
Bobbyallen
blog.bobbyallen.me › 2012 › 07 › 27 › setting-up-a-timemachine-backup-server-on-ubuntu-12-04-server
Setting up a TimeMachine backup server on Ubuntu 12.04 Server – Life in apps, OSs and code!
useradd timemachine -M passwd timemachine (The enter a password, this is what you will need to use when connecting to the time machine drive.) ... Next we need to modify the file located /etc/netatalk/AppleVolumes.default, again we need to add another line at the bottom of the file as follows (replace <username> with the username you choose, In my case it would be ‘timemachine‘):-
🌐
Reddit
reddit.com › r/homelab › setting up ubuntu server for home file sharing and mac os time machine backups
r/homelab on Reddit: Setting up Ubuntu server for home file sharing and Mac OS Time Machine Backups
May 17, 2020 -

Disclaimer: Complete noob to the world of home labs and servers here.

Goal: backup two Macs to a Linux server using Time Machine + file sharing in home network.

My post is here to basically ask if my goal is feasible for a noob, and if so, if you guys have any tips on where to start. This is the post that inspired me: https://alexlubbock.com/time-machine-network-backup-linux

In terms of equipment, I'm thinking of getting a NUC and add 16GB RAM and 1 TB SSD (or should I go 2TB?) and installing Ubuntu Server.

There are probably other things I should be considering but that I'm not aware of yet.

🌐
Alt255
blog.alt255.com › post › timemachine
Time Machine Backups to a Linux Server - Alt255 Blog
February 18, 2017 - $ sudo vim /etc/netatalk/AppleVolumes.default /home/$u "Home Directory" /archive/TimeMachine/$u "Time Machine" options:tm · The $u is a parameter that resolves to the user that has logged into the file sharing service. Since I created the macbook user above, the macbook user will get two file shares customized to that user. ... Changes to AppleVolumes.default require a restart (or possibly just a reload?) of netatalk, but not avahi-daemon. https://fzhu.work/blog/mac/making-ubuntu-server-a-mac-time-capsule.html