Re: Building a FreeBSD NAS

From: Matthew Seaman <matthew_at_FreeBSD.org>
Date: Tue, 08 Feb 2022 14:36:08 UTC
On 05/02/2022 17:57, Andrea Venturoli wrote:
> 
> On 2/5/22 13:38, Christoph Kukulies wrote:
>> Main aim is to access it from macOS as NAS backup server.
>>
>> MacOS should be able to recognize it as a backup medium.
> 
> So you mean TimeMachine?
> I think that's possible with net/samba413 (but didn't try myself).
> 


I have a fake TimeMachine set up using netatalk3 and avahi.  The 
important bit from afp.conf is:

```
;
; Netatalk 3.x configuration file
;

[Global]
   mimic model = TimeCapsule6,106

[Time Machine]
   path = /TimeMachine
   time machine = yes
   ea = ad
```

and afpd.conf:
```
"Xenophobe" -tcp -noddp -uamlist uams_dhx2.so -ipaddr 
2001:8b0:151:1:54f9:9484:e8b0:12d1 -cnidserver 
2001:8b0:151:1:54f9:9484:e8b0:12d1:4700 -mimicmodel RackMac
```

(That should all be on one line.)

As I recall (it's been several years) setup was mostly cut'n'paste from 
various articles I found around the web.  Works like a charm.

/TimeMachine is a ZFS limited to refquota=256G, so that the backup 
doesn't attempt to fill up my whole harddrive.

	Cheers,

	Matthew