Papierkorb Recycle Bin Samba Share Howto

How to create a Samba Recycle Bin ? (Ersatz fuer Papierkorb Windowserver)

  1. At first you need to create the /etc/samba/recycle.conf file
  2. # touch /etc/samba/recycle.conf
  3. # nano /etc/samba/recycle.conf
  4. add:

##Recycle Bin ##
name = Recycle Bin
maxsize = 0
exclude = *.tmp|*.temp|*.o|*.obj|~$*|*.~??|*.log|*.trace
excludedir = /tmp|/temp|/cache
noversions = *.doc|*.ppt|*.dat|*.ini|*.mp3
(Block unwanted Files)

  1. edit your /etc/samba/samba config file
  2. # 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).

  1. # sudo /etc/init.d/samba restart
Мир для Украины Люди