Cobbled together from https://www.reddit.com/r/homelab/comments/83vkaz/howto_make_time_machine_backups_on_a_samba/
- Have at least Samba 4.8
- create
/etc/avahi/services/timemachine.service
(see avahi.xml) - edit
/etc/samba/smb.conf
(see smb.conf)- I only added one path and one valid user, your choice
zfs create tank/backup/$USER/timemachine
zfs set quota=1T tank/backup/$USER/timemachine
systemctl restart avahi-daemon
systemctl restart smb
- Go to your time machine config, it should be there!