Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 4 Mar 2023 10:06:31 -0500
From:      Dan Langille <dan@langille.org>
To:        Craig Leres <leres@freebsd.org>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: FreeBSD+samba as a time machine server for OSX/Ventura?
Message-ID:  <8a3011ce-9c5e-3454-ecce-2cd9ba3c0e25@langille.org>
In-Reply-To: <7cda0c71-5fe2-722b-4ff9-0b48807b7627@langille.org>
References:  <a2d69d35-52d1-e347-0430-eb491ddd69a2@freebsd.org> <bfe08f2a-21e9-2a93-daa2-7bcc77ac53ac@langille.org> <7cda0c71-5fe2-722b-4ff9-0b48807b7627@langille.org>

next in thread | previous in thread | raw e-mail | index | archive | help


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/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?8a3011ce-9c5e-3454-ecce-2cd9ba3c0e25>