How to create a Samba Recycle Bin ? (Ersatz fuer Papierkorb Windowserver)
- At first you need to create the /etc/samba/recycle.conf file
# touch /etc/samba/recycle.conf
# nano /etc/samba/recycle.conf
- add:
##Recycle Bin ## name = Recycle Bin mode = KEEP_DIRECTORIES|VERSIONS|TOUCH maxsize = 0 exclude = *.tmp|*.temp|*.o|*.obj|~$*|*.~??|*.log|*.trace excludedir = /tmp|/temp|/cache noversions = *.doc|*.ppt|*.dat|*.ini|*.mp3(Block unwanted Files)
- edit your /etc/samba/samba config file
-
# nano /etc/samba/smb.conf
add at section “homes”
vfs object = recycle config-file = /etc/samba/recycle.conf recycle:repository = Recycle Bin recycle:keeptree = Yes recycle:versions = Yes
Now restart your samba daemons and the recycle bin should show up after a few moments (but most likely after you delete your first file).
# sudo /etc/init.d/samba restart