Recycle Bin Samba NS8

To add a recycle bin to all shares, we need to edit /home/samba1/.local/share/containers/storage/volumes/config/_data/include.conf and add the following content:

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

Restart the service to apply the new config:

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