Proxmox GUI Setup

  • Create an Ubuntu container.
  • Mount a ZFS share from Proxmox GUI to any mountpoint (/timemachine).

Container Setup

  • Create user with no shell useradd tmachine --shell /bin/false
  • Change owner of mounted drive chown tmachine: /timemachine
  • Install dependencies apt install samba avahi-daemon

Samba Setup

In /etc/samba/smb.conf :

[timemachine]
    comment = Time Machine
    path = /timemachine
    browseable = yes
    writeable = yes
    create mask = 0600
    directory mask = 0700
    spotlight = yes
    vfs objects = catia fruit streams_xattr
    fruit:aapl = yes
    fruit:time machine = yes
    valid users=tmachine
  • Set a password for our user with smbpasswd -a tmachine
  • Restart samba sudo systemctl restart smbd

(Taken from https://joshspicer.com/homelab-2)