zfs Snapshots and sending snapshots to other disks or other systems (sanoid/syncoid) Zfs snapshots are freaking magical. Go back to yesterday at 2:00, copy that file back to where you need it, done. Or roll back the whole disk/partition/zvol to a previous snapshot. Answer from 8layer8 on reddit.com
🌐
Dgross
dgross.ca › blog › linux-time-machine-server
Linux-based Time Machine backup server using Netatalk and ZFS
March 15, 2023 - I read some online discussions describing Time Machine backups to Samba shares being unreliable and/or slow in newer macOS versions. Netatalk/AFP is also simpler to configure and more natively supports certain macOS features. Some quick online research indicated ZFS being the best combination of mature, flexible, and optimized for NAS-type storage. sudo parted /dev/sda (parted) mklabel GPT (parted) q · 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
Discussions

Linux version of Time Machine?
zfs Snapshots and sending snapshots to other disks or other systems (sanoid/syncoid) Zfs snapshots are freaking magical. Go back to yesterday at 2:00, copy that file back to where you need it, done. Or roll back the whole disk/partition/zvol to a previous snapshot. More on reddit.com
🌐 r/linuxquestions
27
13
May 27, 2023
ventura time machine with ubuntu server - Apple Community
Does it mean that TM officially does not support network servers? Or there are some "official" ways to connect? Apple does not support implementations of the spec. That support is up to the implementors. Time Machine works with Synology NAS. Which supports the Apple Time Machine specifications. Time Machine also works with TrueNAS too, per their doc and various reports. That might work here, too. For comparison with this Linux ... More on discussions.apple.com
🌐 discussions.apple.com
June 25, 2023
A Linux-Based Time Machine Server - Hardware - MPU Talk
There was also a series of articles in RaspberryPi’s in house magazine MagPi on building one’s own Linux-based file server using a RaspbeeryPi (of course) and included how to set it up as a Time Machine (basically using SAMBA). Being RaspberryPi based it includes hard-wired network connections ... More on talk.macpowerusers.com
🌐 talk.macpowerusers.com
1
3
June 25, 2023
Anyone doing a self hosted (MacOS) Time Machine backup server?
I am currently doing this via openmediavault. Pretty easy to set up and works pretty well. All you have to do is set up a SMB/CIFS share and it'll show up on your network. I am by no means a master with openmediavault but the interface is very intuitive so I imagine you could figure it out even without a tutorial, but they're out there just in case. More on reddit.com
🌐 r/selfhosted
27
12
September 21, 2024
🌐
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
🌐
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 - A Linux server (Debian-based preferred, but works with most modern Linux distributions). Samba installed on the server. A mounted storage drive (e.g., /media/Backup) with enough space to store backups.
🌐
Apple Community
discussions.apple.com › thread › 254943942
ventura time machine with ubuntu server - Apple Community
June 25, 2023 - TrueNAS supports Time Machine and other storage access services, as do some other packages. As do Synology NAS servers. One (Fedora!) recipe that might work: https://carlhillit.github.io/blog/2021-12-17-LinuxServerTimeMachineBackup/
Find elsewhere
🌐
Carl Hill's IT Blog
carlhillit.github.io › blog › 2021-12-17-LinuxServerTimeMachineBackup
MacOS Time Machine Backup on Linux Server
December 17, 2021 - The share that’s configured in the afp.conf file should be available to select. Select the NAS Time Machine Target on the server and click “Use Disk” and then “Connect” · When prompted, enter a username and password of an account on the linux server that has permissions to the /timemachine directory.
🌐
MacPowerUsers
talk.macpowerusers.com › hardware
A Linux-Based Time Machine Server - Hardware - MPU Talk
June 25, 2023 - There was also a series of articles in RaspberryPi’s in house magazine MagPi on building one’s own Linux-based file server using a RaspbeeryPi (of course) and included how to set it up as a Time Machine (basically using SAMBA). Being RaspberryPi based it includes hard-wired network connections ...
🌐
Nowicki
nowicki.dev › time-machine-on-ubuntu-docker
Time Machine on my home server
December 9, 2024 - Self hosted linux and time machine backups over samba (docker)
🌐
Sam Hewitt
samuelhewitt.com › blog › 2015-09-12-debian-linux-server-mac-os-time-machine-backups-how-to
Using a Linux Server for Time Machine Backups — Sam Hewitt
September 12, 2015 - To make a Linux server or old laptop or something a Time Machine, you can install Netatalk (plus some other stuff) on it.
🌐
GitHub
gist.github.com › 2983a3e8d21ae44534b1
TimeMachineサーバをNetatalkで作る話 · GitHub
http://pwntr.com/2012/03/03/easy-mac-os-x-lion-10-7-time-machine-backup-using-an-ubuntu-linux-server-11-10-12-04-lts-and-up/
🌐
EndeavourOS
forum.endeavouros.com › general system › applications
Samba for macOS issue (Time Machine server) - Applications - EndeavourOS
December 20, 2025 - Now, here is my issue: Context For a long time, I have been using Linux to provide a Time Machine server for macOS clients. Historically I have run a netatalk server and allowed all clients to connect via AFS (Apple’s older protocol) to back up to Time Machine, and this setup worked very well.
🌐
Apple Community
discussions.apple.com › thread › 256112267
2025 Best Time Machine Backup options ple… - Apple Community
I created my own Ubuntu Server with 8 drive bays. I created a zpool for ZFS (software RAID that is bullet proof), setup Linux native containers (LXD). Created a container to be a Time Capsule. Setup mDNS, Samba and it broadcasts it's presence on the LAN to the Macs. Created users in Samba for each Mac user and set permissions. On the Macs you go to Settings > Time Machine and click the + and you will see the Time Capsule you created.
🌐
HexOS
hexos.com
HexOS
Storage, streaming, virtual machines and more. Create a secure, private server you can manage from anywhere with HexOS.
🌐
Bidon
bidon.ca › random › 2014-08-24-time-machine-backups-mac-osx-10.9-debian-gnu-linux-server-network
Time Machine backups for Mac OSX 10.9 to a Debian GNU/Linux server on the network - bidon.ca
August 24, 2014 - Apple normally recommends an Apple router with an Apple hard drive and other closed expensive Apple perceptions of the world. However, most systems allow you to backup to an external server, using their internal backup system. ... - -mimicmodel TimeCapsule6,106 -ipaddr 192.168.1.1 -noddp -uamlist uams_dhx.so,uams_dhx2.so -setuplog "default log_warn /var/log/afpd.log"
Top answer
1 of 2
3

I've had experience with this, and it does work with some fiddling, but it doesn't "just work" in the mac sense. Every now and then, you'll find that you have to reconnect the volume, restart a daemon, or else face weird time machine errors.

If you're okay with being this "hands on", you'll need to install Netatalk (AFP daemon) and Avahi (Bonjour daemon) on your Linux machine, and set a defaults option on your mac to allow Time Machine to use network drives.

This is the guide I used for setting such a system up: http://techiezone.rottigni.net/2013/12/backup-your-mavericks-using-debian-linux-as-a-time-machine/

Make sure you keep a close eye on it for your first few weeks - nothing worse than backups that aren't actually backing up!

2 of 2
2

This is a recipe that I used a long time ago on I think a raspberry pi that had a 3 TB disk attached to it. I have a MacBook pro and when it is connected to a power supply it does the backup even when it is closed. It worked for months until the hard drive died.

I should say that I have not tested this with Mavericks, but I can not think of changes that should prevent this from working. Restore worked fine even though I experienced that big partial restores sometimes seem to fail but this is not a peculiarity of the debian style time capsule. I had a time machine backup once just on a disk and a script that I wrote that had a variable like so test=/${bla} and rm -rf ${test} - CAN YOU GUESS - started deleting my root tree. Yes I am an idiot, but I learn from my mistakes. That is more than some people can say. Anyway, the restore of this did not work, it crashed somewhere and I restored important data by hand. But this was a time machine issue, it had nothing to do with debian.

I took it from:

http://routerjockey.com/2009/08/28/setting-up-apple-filing-protocol-and-bonjour-under-debian/

apt-get build-dep netatalk
apt-get install libcrack2-dev fakeroot libssl-dev
apt-get source netatalk

cd netatalk-2.2.2/
dch -v 2.2.2-2+SSL (enter ctrl+x y and enter)

DEB_BUILD_OPTIONS=ssl dpkg-buildpackage -rfakeroot

cd ..
dpkg -i netatalk_2.2.2-2+SSL_i386.deb
aptitude hold netatalk


vi /etc/default/netatalk

    ATALKD_RUN=no
    PAPD_RUN=no
    CNID_METAD_RUN=yes
    AFPD_RUN=yes
    TIMELORD_RUN=no
    A2BOOT_RUN=no

vi /etc/netatalk/afpd.conf

add line at bottom:
- -tcp -noddp -uamlist uams_dhx_passwd.so,uams_dhx2_passwd.so

This was the old line that caused unsupported server problem:
- -transall -uamlist uams_randnum.so,uams_dhx.so -nosavepassword -advertise_ssh


vi /etc/netatalk/AppleVolumes.default

at the bottom add:
~/                 "Home Directory"   "$u"        cnidscheme:cdb
/data/music        mp3                allow:chris
3## This line is different from the tutorial in the link, as it did not work     without the tm option
/data/timemachine  TimeMachine        allow:chris cnidscheme:cdb  options:usedots,upriv,tm

I got the error on the Macbook: Something wrong with the volume's CNID DB, using temporary CNID DB instead.Check server messages for details!

After changing cnidscheme:cdb to cnidscheme:dbd the error went away.

/etc/init.d/netatalk restart

apt-get install avahi-daemon
apt-get install libnss-mdns

vi /etc/nsswitch.conf

hosts:          files mdns4_minimal [NOTFOUND=return] dns mdns4 mdns

vi /etc/avahi/services/afpd.service

This file should contain:

<?xml version="1.0" standalone='no'?><!--*-nxml-*-->
 <!DOCTYPE service-group SYSTEM "avahi-service.dtd">
 <service-group>
 <name replace-wildcards="yes">%h</name>
 <service>
     <type>_afpovertcp._tcp</type>
     <port>548</port>
 </service>
 <service>
     <type>_device-info._tcp</type>
     <port>0</port>
     <txt-record>model=Xserve</txt-record>
 </service>
</service-group>


/etc/init.d/avahi-daemon restart

chown -R chris:chris /data/timemachine/
chown -R chris:chris /data/music

This worked for me and as soon as I have bought a Raid something I will redo the setup with my raspberry as it is the ideal compromise between performance and energy usage.

🌐
Nick Bouwhuis
nick.bouwhuis.net › posts › 2020-01-03-time-machine-server-on-debian-10-copy
Use Debian 10 as a 🔄 Time Machine server | Nick Bouwhuis
January 3, 2020 - Turn a Debian 10 NAS into a macOS Time Machine backup target using Samba 4.9 and the vfs_fruit (fruit:time machine) extensions. Full smb.conf config included.