I'm working under Linux and Windows network long time. Usually we are sharing document with each others with Samba or Windows File Sharing. But the problem is, after delete file on shared document, that file will be deleted permanently. There is no way to restore accidentally deleted files. We have to use recover tools to recover deleted files. But problem is, recover option is not familiar with normal computer users. If you are using Windows, there are many 3rd party tools that can help you recover your files easily. But if you are using Linux, then it can be quite a huge problem. Following configuration will useful under Linux.
First you need to create the /etc/samba/recycle.conf file. Login as root.vi /etc/samba/recycle.conf
Then edit recycle.conf file as follow.
##Recycle Bin Configuration File##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
mode = KEEP_DIRECTORIES|VERSIONS|TOUCH
maxsize = 0
exclude = *.tmp|*.temp|*.o|*.obj|~$*|*.~??|*.log|*.trace
excludedir = /tmp|/temp|/cache
noversions = *.doc|*.ppt|*.dat|*.ini
and then edit your /etc/samba/samb.conf file...
sudo vi /etc/samba/smb.conf
add the following lines to the each share folder which you'd like the recycle bin to live.
vfs object = recycle
config-file = /etc/samba/recycle.conf
recycle:repository = Recycle Bin
recycle:keeptree = Yes
recycle:versions = Yes
then restart your samba daemons and the recycle bin should show up after a few momnents (but most likely after you delete your first file).
/etc/init.d/samba restart
empty folder is not seen in recyclebin using samba 3.6.3 and ubuntu 12.04
ReplyDeleteI have implemented with debian 5.6 and working fine. I'll check with ubuntu dist.
Delete