Recycle Bin Samba NS8

That’s nice and it works: (in this example testfolder gets a recycle bin)

Enter the container:

runagent -m samba1 podman exec -ti samba-dc bash

Execute following commands:

net conf setparm testfolder "vfs objects" recycle
net conf setparm testfolder recycle:exclude_dir /tmp,/temp,/cache
net conf setparm testfolder recycle:repository "Recycle Bin"
net conf setparm testfolder recycle:versions True
net conf setparm testfolder recycle:keeptree True
net conf setparm testfolder recycle:touch True
net conf setparm testfolder recycle:directory_mode 0770
net conf setparm testfolder recycle:exclude *.tmp,*.temp,*.o,*.obj,~$

The service needs to be restarted to apply the config.

runagent -m samba1 systemctl --user restart samba-dc

3 Likes