ventura time machine with ubuntu server
Time machine is very helpful, but as far as I understand, it's sort of useless if you want to backup data from your laptop on an external drive. First, it needs to be automatic and second, you do not want to attach a tail to your laptop to do it. The most useful way is to have a server and let your backups happen every day/hour, etc.
So I tried to setup TM on my new Macbook Air with Ventura 13.4 using Ubuntu 18.04 server. Using various sources here is what I did on my Ubuntu:
Installed samba and netatalk.
Modified the following files:
/etc/samba/smb.conf
[global]
client max protocol = default
client min protocol = SMB2_02
server max protocol = SMB3
server min protocol = SMB2_02
....
[timemachine]
valid users = alex
comment = Time Machine
path = /media/alex/Passport2T/
browseable = yes
read only = no
spotlight = yes
vfs objects = catia fruit streams_xattr
fruit:time machine = yes
/etc/avahi/services/samba
service
<?xml version="1.0" standalone='no'?>
<!DOCTYPE service-group SYSTEM "avahi-service.dtd">
<service-group>
<name replace-wildcards="yes">%h</name>
<service>
<type>_smb._tcp</type>
<port>445</port>
</service>
<service>
<type>_device-info._tcp</type>
<port>0</port>
<txt-record>model=TimeCapsule8,119</txt-record>
</service>
<service>
<type>_adisk._tcp</type>
<txt-record>dk0=adVN=timemachine,adVF=0x82</txt-record>
<txt-record>sys=waMa=0,adVF=0x100</txt-record>
</service>
</service-group>
Now from Macbook I can access my drive from Finder both as Passport2T and timemachine, but when I try to use it in Timemachine, it fails. On "Add Backup Disk" I see "timemachine", but when I click on "Set Up Disk" and enter my password, it just keeps popping up the same dialog, seemingly not accepting my login.
Can anyone tell me if it is possible to do and how to to do it?
MacBook Air 13″, macOS 13.4