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

From: Dan Langille <dan_at_langille.org>
Date: Sat, 04 Mar 2023 15:06:31 UTC

Dan Langille wrote on 3/1/23 3:54 PM:
> Dan Langille wrote on 3/1/23 11:29 AM:
>> Craig Leres wrote on 2/28/23 11:28 PM:
>>> 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. 
>>> Does anybody have a config or wisdom they could share? I've appended 
>>> the config that worked with Big Sur.
>>
>> I wrote/did this: 
>> https://dan.langille.org/2017/04/19/creating-an-apple-time-capsule-using-freebsd/ 
>>
>>
>> I'm using FreeBSD 13.1 and netatalk3-3.1.13_4,1
>>
>> I'm pretty sure Samba is not involved. I might be wrong
>
> Confirmed. I do this without Samba (it's not installed on the host). 
> Here is my configuration, the same approach for nearly 6 years now.
>
> [knew dan ~] % cat /usr/local/etc/afp.conf
>
> [Global]
> vol preset = default_for_all_vol
> log file = /var/log/netatalk.log
> log level = default:warn
>
> hosts allow = [redacted]
> mimic model = TimeCapsule6,116
>
> [default_for_all_vol]
> cnid scheme = dbd
> ea = ad
>
> [dvl-air01]
> path = /data/time_capsule/dvl-air01
> valid users = dvl-air01
> time machine = yes
> #vol size limit = 950000
>
> [dvl-pro02]
> path = /data/time_capsule/dvl-pro02
> valid users = dvl-pro02
> time machine = yes
>
> [dvl-dent]
> path = /data/time_capsule/dvl-dent
> valid users = dvl-dent
> time machine = yes
>
> [dvl-dent-sparse]
> path = /data/time_capsule/dvl-dent-sparse
> valid users = dvl-dent
> time machine = yes
>

Last night I confirmed this approach still works. I added a new client, 
dvl-pro03

In short:

zfs create system/data/time_capsule/dvl-pro03

createuser dvl-pro03

sudo chown dvl-pro03:dvl-pro03 /data/time_capsule/dvl-pro03

Add this to /usr/local/etc/afp.conf

[dvl-pro03]
path = /data/time_capsule/dvl-pro03
valid users = dvl-pro03
time machine = yes

That client is now backing itself up.

-- 
Dan Langille
dan@langille.org : https://langille.org/