Re: FreeBSD+samba as a time machine server for OSX/Ventura?

From: Dimitry Andric <dim_at_FreeBSD.org>
Date: Wed, 01 Mar 2023 18:34:37 UTC
On 1 Mar 2023, at 05:28, Craig Leres <leres@freebsd.org> wrote:
> 
> In 2020 I was able to install the netatalk3 port and use a FreeBSD system as a time machine server. In 2021 when I upgraded to Big Sur appletalk was no longer supported so I switched to samba413.
> 
> I've never managed to get this to work since upgrading to Ventura.

What happened with Ventura? When I upgraded to it, Time Machine backups
to a FreeBSD samba server kept on working just as before.


> Does anybody have a config or wisdom they could share? I've appended the config that worked with Big Sur.

First of all, install samba416 instead of samba413. There are lots of
important fixes, also in the Apple SMB compat area.

What I'm using is mostly (irrelevant settings removed):

[global]
	fruit:aapl = yes
	fruit:zero_file_id = yes
	vfs objects = catia fruit streams_xattr zfsacl

# ... other stuff ...

[tm-share]
	comment = Time Machine share
	path = /foo/bar/baz
	read only = No
	write list = luser
	fruit:time machine = yes

And that's about it. The most important things are the global fruit
options, in particular zero_file_id (see bug 269883 for the gory
details), and of course the vfs objects option. If you don't use ZFS
(but you should) remove zfsacl.

Btw do NOT use sendfile. It never worked properly, even with AppleTalk.

-Dimitry