All pastes #928054 Raw Edit

Unnamed

public text v1 · immutable
·published 2008-03-04 19:39 UTC
rendered paste body
FreeBSD 6.3 and samba 3.0.28

Add to samba.conf file:

# virtual filesystems like Recycle Bin
vfs object = recycle
     recycle:repository = .recycle/%U
     recycle:keeptree = Yes
     recycle:touch = Yes
     recycle:versions = Yes
     recycle:maxsize = 0
     recycle:exclude = *.tmp *.temp *.o *.obj ~$* *.~??
     recycle:excludedir = /tmp /temp /cache
     recycle:noversions = *.doc *.xls *.ppt

# If you need all files under on directory:
# recycle:repository = /usr/home/samba/.recycle/%U