🌐
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 - Open your Samba configuration file: ... yes fruit:veto_appledouble = no spotlight = yes ... fruit:time machine max size = 250G limits the backup size to 250GB per device....
🌐
Al4
blog.al4.co.nz › 2024 › 04 › samba-config-for-apple-time-machine
Samba config for Apple Time Machine | Al4
April 4, 2024 - These work for me as a general set of settings for mac clients – I don’t use Windows or Linux clients often, so I don’t know how well it works for them. It’s possible some of these options are not required, as they’ve accumulated over time. ... [TimeMachine NAS] path=/pool1/backup/timemachine comment=Time Machine valid users = alex writable = yes durable handles = yes kernel oplocks = no kernel share modes = no posix locking = no ea support = yes browseable = yes read only = no inherit acls = yes fruit:time machine = yes
Discussions

Can Time Machine backup to a folder on a Samba Share? - Ask Different
Yes, it can. (I've been doing this for years.) Types of disks you can use with Time Machine on Mac · On network volumes, TM backups are stored as sparsebundles. Samba v4.8 or higher, has to be configured with macOS extensions, plus the share has to be configured for Time Machine. More on apple.stackexchange.com
🌐 apple.stackexchange.com
mac - Configure Samba correctly for TimeMachine and other shares - Ask Different
I have configured a Linux container on a Proxmox host as a Time Machine target. However, every share is now displayed as a possible Time Machine target. This is not the case with my Synology. There... More on apple.stackexchange.com
🌐 apple.stackexchange.com
Big Sur + SMB based Time Machine | Apple Developer Forums
If you force the folders to inherit permissions, time machine will complain about missing features. Either way, time machine is completely non-functional. I've reported feedback and seen that others have the same issue, but no one I know has worked around it yet. Samba 4.11.6 from ubuntu 20.04 standard options in smb.conf like fruit:aapl = yes and fruit:timemachine = yes, as well as the proper vfs etc. It is configured ... More on developer.apple.com
🌐 developer.apple.com
Any Way to use a SMB Server for Time Machine?
My ReadyNAS system has the TimeMachine backup option in its configuration. Under the hood, the ReadyNAS system is a version of Debian Linux, so there’s probably some package that may make it show up as a TimeMachine backup rather than just a Windows share. More on reddit.com
🌐 r/MacOS
5
6
July 9, 2021
🌐
Son of Sun Tzu blog
blog.sonofsuntzu.org.uk › posts › how to configure a samba server to accept time machine backups
How to configure a Samba server to accept Time Machine backups | Son of Sun Tzu blog
July 20, 2025 - Also keep in mind tail -F /var/log/samba/log* to watch for specific errors. And that, in my limited experience, the output of testparm -s is pretty useless, you’re better off running the configured service and watching the logs. ... [global] host msdfs = no mdns name = mdns multicast dns register = yes name resolve order = bcast host lmhosts wins Whole set of options to make the time machine share work fruit:aapl = yes fruit:advertise_fullsync = true fruit:metadata = stream fruit:veto_appledouble = no fruit:nfs_aces = no fruit:wipe_intentionally_left_blank_rfork = yes fruit:delete_empty_adfi
🌐
SambaWiki
wiki.samba.org › index.php › Configure_Samba_to_Work_Better_with_Mac_OS_X
Configure Samba to Work Better with Mac OS X - SambaWiki
December 1, 2025 - [Global] vfs objects = fruit streams_xattr fruit:metadata = stream fruit:model = MacSamba fruit:veto_appledouble = no fruit:nfs_aces = no fruit:wipe_intentionally_left_blank_rfork = yes fruit:delete_empty_adfiles = yes fruit:posix_rename = yes [TimeMachineBackup] fruit:time machine = yes # fruit:time machine max size = SIZE · Beware! This configures VFS objects in the global section, setting vfs objects in a share will *overwrite* the globally configured option, it will NOT supplement them. Below are suggested parameters to use in smb.conf file of the Samba server to improve operability with Mac OS X clients. Note that some parameters may not work with your version of Samba - read the smb.conf and vfs_fruit man pages (on Linux) for your system.
🌐
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
🌐
Stefan Johner
blog.jhnr.ch › 2023 › 01 › 09 › setup-apple-time-machine-network-drive-with-samba-on-ubuntu-22.04
Setup Apple Time Machine network drive with Samba on Ubuntu 22.04 - Stefan Johner
January 9, 2023 - #======================= Global Settings ======================= [global] # Fruit global config fruit:aapl = yes fruit:nfs_aces = no fruit:copyfile = no fruit:model = MacSamba # Permissions on new files and directories are inherited from parent directory inherit permissions = yes # Change this to the workgroup/NT-domain name your Samba server will part of workgroup = WORKGROUP # Samba will automatically "register" the presence of its server to the rest of the network using mDNS. Since we are using avahi for this we can disable mdns registration.
🌐
R-Digital
reifschneider.digital › blog › ultimate-guide-samba-time-machine-backups
Ultimate Guide to Configuring Samba for Time Machine Backups on Debian Servers | Blog | R-Digital
November 1, 2024 - Open your Samba configuration file: ... yes fruit:veto_appledouble = no spotlight = yes ... fruit:time machine max size = 250G limits the backup size to 250GB per device....
🌐
Jpatrickfulton
jpatrickfulton.dev › blog › 2023-06-23-samba-and-timemachine
Samba and macOS Time Machine - jpatrickfulton.dev
October 3, 2023 - Without this option set, Samba is unable to manage permissions itself using create mask, force create mode, directory mask, force directory mode or inherit permissions directives. To edit the configuration using vim execute the following command. ... The following section needs to be added to the [global] section of the configuration file. It establishes the file system extensions and protocol versions necessary to support macOS. ... ### Time Machine Compatibility ### min protocol = SMB2 vfs objects = catia fruit streams_xattrfruit:nfs_aces = nofruit:metadata = stream fruit:model = MacSamba fruit:posix_rename = yes fruit:veto_appledouble = no fruit:wipe_intentionally_left_blank_rfork = yes fruit:delete_empty_adfiles = yes server min protocol = SMB2
Find elsewhere
🌐
FreeBSD Foundation
freebsdfoundation.org › home › written › samba-based time machine backups
Samba-based Time Machine Backups | FreeBSD Foundation
September 6, 2024 - First, install the Samba package: ... Next, we configure our backup storage for ZFS. In my case, I have a dedicated pool aptly named backup and mounted at the same location (/backup). I create a separate dataset for Time Machine and set a quota and reservation, since I store other data on it ...
🌐
Manjaro
manjaro.site › home › how to configure time machine to backup to samba shared folder
How to Configure Time Machine to Backup to Samba Shared Folder - Manjaro dot site
December 25, 2020 - Now we need to tell Time Machine to use the image file in the shared network. Open Terminal and do the following · sudo tmutil setdestination /Volumes/BigSur_TimeMachine/
🌐
Domain of the Technomancer
technomancer.com › archives › 633
Setting Up Samba To Work as a Time Machine Target – Domain of the Technomancer
<?xml version="1.0" standalone='no'?> <!DOCTYPE service-group SYSTEM "avahi-service.dtd"> <service-group> <name replace-wildcards="yes">%h</name> <service> <type>_smb._tcp</type> <port>445</port> <host-name>%h</host-name> </service> <service> <type>_device-info._tcp</type> <port>0</port> <txt-record>model=MacPro6,1</txt-record> </service> <service> <type>_adisk._tcp</type> <txt-record>sys=waMa=0,adVF=0x100</txt-record> <txt-record>dk0=adVN=TimeMachine,adVF=0x82</txt-record> <host-name>timemachine.local</host-name> </service> </service-group>
🌐
Marinus Klasen
mklasen.com › home › blog › general › timemachine with samba on an ubuntu server
TimeMachine with samba on an Ubuntu server - Marinus Klasen
March 26, 2021 - Finding the right configuration took me a while, but with the settings below the disk automatically showed in the TimeMachine settings. ... [global] min protocol = SMB2 vfs objects = fruit fruit:metadata = stream fruit:model = MacSamba fruit:posix_rename = yes fruit:veto_appledouble = no fruit:wipe_intentionally_left_blank_rfork = yes fruit:delete_empty_adfiles = yes fruit:aapl = yes fruit:time machine = yes server min protocol = SMB2 log file = /var/log/samba/%m log level = 1
🌐
Ddaa
ddaa.net › 2025 › time-machine-samba-config.html
Time Machine, Samba configuration — ddaa.net
The minimal additonal Samba configuration, in /etc/samba/smb.conf, for a single SMB share named, unimaginatively, “backup”, accessible by the unsurprisingly named “backupuser”, would be this: [backup] path = /media/backup vfs objects = fruit fruit:time machine = yes valid users = backupuser writeable = yes
🌐
Medium
drakeevans.medium.com › setup-networked-time-machine-drive-ff53122d0d9b
Setup Networked Time Machine Drive | by Drake Evans | Medium
October 17, 2021 - Add user for time machine backups only and set password · sudo adduser timemachine · Take ownership of the drive · sudo chown -R timemachine: /mnt/TMDrive · Edit the Samba configuration file: sudo nano /etc/samba/smb.conf · Contents of ...
🌐
GitHub
github.com › danielewood › misc › blob › master › Samba-TimeMachine.md
misc/Samba-TimeMachine.md at master · danielewood/misc
Ensure that everyone can read the Time Machine configuration files: ... If your Time Machine Target and Client Machines will not always be on the same subnet, you can use tmutil to manually set a target. Then, as long as your Client has a route to the Target, your automatic backups will function. They will also function over VPN, which could be a good thing or a problem. For our organization, we added an Alias IP to the FreeNAS server and created a separate A-Record to point to it.
Author   danielewood
Top answer
1 of 4
5

Yes, it can. (I've been doing this for years.)

Types of disks you can use with Time Machine on Mac

On network volumes, TM backups are stored as sparsebundles.

Samba v4.8 or higher, has to be configured with macOS extensions, plus the share has to be configured for Time Machine.

Configure Samba to Work Better with Mac OS X

Depending on the host system, there might be a GUI (Synology DSM), otherwise Samba's smb.conf needs to be modified accordingly.

2 of 4
1

Starting with macOS Tahoe, the AFS protocol for Time Machine is no longer accepted. One must use Samba with modern macOS for a homemade Time Machine.

At the time of writing, Tahoe is the latest macOS.

  1. Install samba. Make a group smbgroup and add a new user intended to only be used with the Samba connection:

    • sudo groupadd smbgroup
    • sudo useradd -M -s /usr/sbin/nologin timemachine
    • sudo usermod -aG smbgroup timemachine
  2. Set that new user's Samba password with smbpasswd and enable the account:

    • sudo smbpasswd -a timemachine
    • sudo smbpasswd -e timemachine
  3. Set up ACL support

    • sudo apt install acl (or equivalent for your package manager if not using a Debian-based distro)
  4. Create the Time Machine directory. I keep it in /srv as it's the idiomatic place to keep it on Linux.

    • sudo mkdir -p /srv/timemachine
    • sudo chown timemachine:smbgroup /srv/timemachine
    • sudo chmod 2770 /srv/timemachine
    • We use 2770 rather than 770 because the 2 (setgid bit) ensures new files are owned by smbgroup.
  5. Add ACLs

    • sudo setfacl -m group:smbgroup:rwx /srv/timemachine
    • sudo setfacl -d -m group:smbgroup:rwx /srv/timemachine

There are several guides on how to configure smb.conf correctly for Time Machine. I will share my config below, just in case it helps. This is on Debian 13 and only serves macOS clients on Sequoia and Tahoe. I don't use Avahi/Zeroconf because the server remains connected around the clock without any issues.

[global]
   server role = standalone server
   workgroup = WORKGROUP
   netbios name = fileserver
   security = user

   log file = /var/log/samba/log.%m
   max log size = 1000

   server min protocol = SMB3
   client signing = required

   obey pam restrictions = yes
   pam password change = yes
   unix password sync = yes

   inherit acls = yes
   map to guest = Bad User

   vfs objects = catia fruit streams_xattr
   fruit:metadata = stream
   fruit:resource = stream

[TimeMachine]
   path = /srv/time-machine
   browsable = yes
   read only = no
   guest ok = no
   valid users = @smbgroup
   vfs objects = catia fruit streams_xattr
   fruit:time machine = yes
   fruit:model = TimeCapsule
   fruit:metadata = stream
   create mask = 0660
   directory mask = 0770

Pro Tip: If making a fresh partition for Time Machine use, XFS is recommended more so than EXT4, because XFS is not susceptible to issues that could arise with an EXT4 FS, especially on larger drives. Basically, each file creates an inode for its metadata, but you have a limited number of inodes in ext4, whereas this isn't a problem that exists in XFS. This matters because Time Machine creates many very small files, so it would be possible to run out of inodes. This is what -T news exists for (the term is from news servers would would have many small text files). Formatting ext4 with -T news gives you more inodes if XFS isn't an option, so if you must use ext4, it would be recommended to format it with the news flag.

🌐
Stack Exchange
apple.stackexchange.com › questions › 475878 › configure-samba-correctly-for-timemachine-and-other-shares
mac - Configure Samba correctly for TimeMachine and other shares - Ask Different
pam password change = yes map to guest = bad user ####### Misc ####### usershare allow guests = yes #======================= Share Definitions ======================= [Share] path = /shares/Share fruit:time machine = no available = yes valid users = @root read only = no writeable=yes browseable=yes public = no guest ok = no create mask = 0755 [Time Machine] fruit:time machine = yes fruit:time machine max size = 500G path = /shares/Time_Machine available = yes valid users = @root read only = no writeable=yes browseable=yes public = no guest ok = no create mask = 0755
🌐
Apple Developer
developer.apple.com › forums › thread › 666293
Big Sur + SMB based Time Machine | Apple Developer Forums
My share is ext 4 and this works for me [Tmachine] comment = time machine share path = /mnt/share/backups/TimeMachine valid users = glen read only = no vfs objects = catia fruit streams_xattr fruit:time machine = yes ... For anyone still having problems where Finder freezes/hangs on copies and/or 0 byte files are created I tracked this down to a Samba bug (Bug 14420). Try setting the following in your smb.conf. I've had no issues since. ... Can somebody having it working post complete example configuration file?
🌐
Reddit
reddit.com › r/macos › any way to use a smb server for time machine?
r/MacOS on Reddit: Any Way to use a SMB Server for Time Machine?
July 9, 2021 -

I have a 27" iMac (2020) and want to back it up with Time Machine. Recently I set up a NAS using a Raspberry Pi 4 and a 6TB WD Elements External HDD. Now I want to use this NAS as a Backup Server with Time Machine.

If I remember correctly, you create a TimeMachine Sparsebundle, mount it and set it as destination using "tmutil" in the Terminal. But every time I have done this, after a Week it would say to me that it needs to create a new Backup to enhance reliability or something.

So, my question is what I am doing wrong and if there is any way to prevent the Backup from corrupting?