I've been lurking on this thread. I want to report that it is possible to run Time Machine to an SMB server with very nice performance if you have control over the whole chain. Admittedly in my case, I have pretty beefy hardware for the SMB server. It's a Core i7 PC running Linux with Samba 4.13.9. The disks with the TM mount are running on top of LVM on a 5-disk RAID 5 array with 7200 RPM disks. The underlying filesystem on the Linux side is standard ext4. My MBP is running with wired ethernet typically. Wireless seems to make it a little slower. Big Sur gives some goofy large estimated how long it will take to do a backup. But the backup never takes as long as it claims.
I have an old Time Machine access point I use as another backup server. But this one goes a lot faster.
I put together my Samba conf from information across various pages on the Internet and it seems to work great. The Samba server shows up when you add a new TM Network disk and works naturally. Here are important bits in my SMB configuration related to this functionality.
Oh, and mdns is also involved. Here is part of the avahi configuration on the server. I think the important part is the _adisk._tcp service.
I have an old Time Machine access point I use as another backup server. But this one goes a lot faster.
I put together my Samba conf from information across various pages on the Internet and it seems to work great. The Samba server shows up when you add a new TM Network disk and works naturally. Here are important bits in my SMB configuration related to this functionality.
Code:
[global]
max protocol = smb
client max protocol = smb
unix extensions = no
wide links = yes
create mask = 0644
encrypt passwords = yes
smb encrypt = auto
smb passwd file = /etc/samba/private/smbpasswd
local master = yes
domain master = yes
# Time Machine
ea support = yes
vfs objects = catia fruit streams_xattr
durable handles = yes
kernel oplocks = no
kernel share modes = no
posix locking = no
fruit:advertise_fullsync = true
smb2 leases = yes
map to guest = Bad User
[timemachine]
comment = Time Machine
path = /mnt/timemachine
writeable = yes
browseable = yes
create mask = 0600
directory mask = 0700
spotlight = yes
vfs objects = catia fruit streams_xattr
fruit:aapl = yes
fruit:metadata = stream
fruit:model = MacSamba
fruit:time machine = yes
inherit acls = yes
Oh, and mdns is also involved. Here is part of the avahi configuration on the server. I think the important part is the _adisk._tcp service.
Code:
<?xml version="1.0" standalone='no'?>
<!DOCTYPE service-group SYSTEM "avahi-service.dtd">
<service-group>
<name replace-wildcards="yes">%h</name>
<service>
<type>_adisk._tcp</type>
<txt-record>sys=waMa=0,adVF=0x100</txt-record>
<txt-record>dk0=adVN=timemachine,adVF=0x82</txt-record>
</service>
<service>
<type>_smb._tcp</type>
<port>445</port>
</service>
</service-group>
Last edited: