Koozali.org: home of the SME Server
Legacy Forums => Suggestions => Topic started by: MadPat on April 29, 2003, 11:44:02 AM
-
I do believe it is not availble (to my knowledge), but i would be nive if there is a recycle bin option available in Samba.
-
http://samba.org/ftp/unpacked/samba_2_2/examples/VFS/recycle/README
-
Have you tried this mod in your SME server ?
-
which mod ?
-
I have done a quick test on SME 5.6 (Samba 2.2.7) and it seems to work very well. I am impressed.
Thanks for the pointer RequestedDeletion.
Regards,
Michael
-
Can you describe exactly what you did.
did you made a template or just adjust smb.conf
-
Create /etc/e-smith/templates-custom/etc/smb.conf/11networkrecyclebin
vfs object = /usr/lib/samba/vfs/recycle.so
vfs options = /etc/e-smith/templates-custom/etc/smb.conf/52recycle
then
create /etc/e-smith/templates-custom/etc/smb.conf/52recycle
[recycle]
name = .recycle
mode = KEEP_DIRECTORIES|VERSIONS|TOUCH
maxsize = 0
exclude = *.tmp|*.temp|*.o|*.obj|~$*
excludedir = /tmp|/temp|/cache
noversions = *.doc|*.xls|*.ppt
and
/sbin/e-smith/expand-template /etc/smb.conf
service smb restart
Done
still need script to empty recycle
find /home/e-smith/files/*/*/*/.recycle -type f -atime +10 -exec rm {} \;
Maybe I forget something, but try it....
-
Perfect. works great. :-)
Strange this is not build in SME.
thanks very much. i think this has to be annouched in the forum or in a how to.
-
Michael,
Would you please write up a short how-to and publish it on contribs.org? This way all SME enthousiatics may benefit from your nice work.
You're cooporation and effort would be much appreciated by the community. Nice job!
TIA
Regards,
RequestedDeletion
ps. please send an e-mail to contribs@rstrat.com to request some free (SME related) hosting space for your how-to(s) :-) . They'll be glad to provide you with it!
-
I've made a howto on contribs.org.
AP i hope you don't mind that i used my name as the author, because i didn't know your name. i don't want to have the credits if don't earn them
-
Hi Patrick,
I don´t know your ALIAS was MadPat ! (I SHOULD look at e-mail...)
GREAT contrib to all SME comunity... I´l try it TODAY!
Thanks!
Jáder
-
Nice work and thanks Patrick!
-
Nice one, this could save quite a few users!
I'm not quite sure what you mean by a script to empty the recycle bin.
Isn't that the users job when they run out of space, certainly the recycle bin in a default install of windows doesn't empty it out.
Many people would be very anoyed to find that they come back after the weekend, decide they need that file after all only to find that it was gone because it was deleted last Monday and so a week had gone by.
Opinions any one?
Craig
-
Read
http://www.amherst.edu/~bbstone/howto/samba.html
-
When I do this part:
pico /etc/e-smith/templates-custom/etc/smb.conf/11networkrecyclebin
And then try and save the file pico says:
"Cannot open file for writing no such file or directory"
Am I having a bad day or what?
-
Try to go to the dir :
/etc/e-smith/templates-custom/etc/smb.conf/
and then try
pico 11networkrecyclebin
maybe this works
-
Pls what is the exect url to MadPat's howto i cant find it
-
Frits,
try
http://www.pdebrabander.nl/howto.htm
good luck
-
When I run this,
I then can not access any of my ibays or anything??
5.5U6
Have to restore more original smb.conf, and restart Samba
dan
-
Can you be more specific.
i'm running v5.5 but haven't had/have any problems.
-
Hi,
I do all the steps, exactlly.
I expand the template.
I restart smb.
On my windows based workstation after doing this I can not access any of my ibays.
If I restore the smb.conf and restart smb I am good to go.
dan