You could use the samba registry.
Enter the samba instance environment, in this example it’s samba1:
runagent -m samba1
Set options:
podman exec samba-dc net conf setparm "time machine" "fruit:time machine" yes
podman exec samba-dc net conf setparm "time machine" "fruit:time machine max size" 1T
podman exec samba-dc net conf setparm "time machine" fruit:aapl yes
podman exec samba-dc net conf setparm "time machine" "vfs objects" "dfs_samba4 acl_xattr recycle full_audit fruit streams_xattr catia"
List options to check if they’re set correctly:
[samba1@node state]$ podman exec samba-dc net conf list
[time machine]
path = /srv/shares/time machine
comment =
guest ok = no
read only = no
fruit:time machine = yes
fruit:time machine max size = 1T
fruit:aapl = yes
vfs objects = dfs_samba4 acl_xattr recycle full_audit fruit streams_xattr catia
See Recycle Bin Samba NS8 - #4 by mrmarkuz or Recycle Bin Samba NS8 - #31 by mrmarkuz for examples.
EDIT:
The default vfs objects defined in smb.conf are
vfs objects = dfs_samba4 acl_xattr recycle full_audit
so you may need to add them to the share options like
podman exec samba-dc net conf setparm "time machine" "vfs objects" "dfs_samba4 acl_xattr recycle full_audit fruit streams_xattr catia"
It’s also possible to define the mac options globally by using the include.conf file:
Edit include.conf…
podman unshare nano $(podman volume inspect config --format={{.Mountpoint}})/include.conf
…and add following content:
vfs objects = dfs_samba4 acl_xattr recycle full_audit fruit streams_xattr catia