Skip to content

implementing trash with samba

edit /etc/samba/smb.conf
create new share
[public]
comment = public folder
path = /home/diesdas/public
read only = No
create mask = 0777
directory mask = 0777
vfs object = recycle (SAMBA ADDON FOR TRASH)
recycle:repository = /home/.Papierkorb
recycle:keeptree = yes
recycle:exclude = *.tmp *.temp *.swp *.o *.obj ~s* Backup* AUTOBACKUP*
recycle:exclude_dir = /tmp /temp /cache /.Cache /.cache
recycle:touch = yes
recycle:versions = yes

All deletet files will placed in directory .Papierkorb