#{茶男與藍牌}
How To Create a Samba Recycle Bin
from http://ubuntuforums.org/showthread.php?t=155763
ok, first you need to create the /etc/samba/recycle.conf file.
Code:
sudo vi /etc/samba/recycle.conf
You must create this from scratch so don’t be frightened by the blank page. Mine looks like this:
Code:
##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
and then edit your /etc/samba/samb.conf file…
Code:
sudo vi /etc/samba/smb.conf
add the following lines to the directory within which you’d like the recycle bin to live (i have recycle bins in [homes] and [www] on my server):
Code:
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).
Code:
sudo /etc/init.d/samba restart
i worked on this all day and had trouble finding solid documentation. this was the only thread on the subject here, so hopefully this will help someone else out!
-
Articles
- October 2012
- May 2012
- April 2012
- March 2012
- February 2012
- December 2011
- November 2011
- October 2011
- September 2011
- August 2011
- June 2011
- May 2011
- April 2011
- March 2011
- February 2011
- January 2011
- December 2010
- November 2010
- October 2010
- September 2010
- August 2010
- July 2010
- June 2010
- April 2010
- March 2010
- February 2010
- January 2010
- December 2009
- November 2009
- October 2009
- September 2009
- August 2009
- June 2009
- May 2009
- April 2009
- March 2009
- February 2009
- January 2009
- December 2008
- November 2008
- October 2008
- September 2008
-
Meta



