[Samba] Recycle Module
cary at topsolutionsinc.com
Thu Jun 21 14:29:58 GMT 2007
Thank you VERY much.
I won't be able to test it until later today when the office clears
out, but Your example has shown me a lot that wasn't mentioned in the
book I bought or on any web site I have found. I'll have a lot more
enthusiasm when I try you examples later today.
At 07:44 PM 6/20/2007, Cybionet wrote:
> Recycle bin on network work great. First create a .recycle
> directory (directly in the share directory for your test).
>chown root:root .recycle
>setfacl -m group:DomainUsers:rwx .recycle
> As you can see I use ACL(EA) on my filesystem. If you create this
> repository directely in the share add the following parameter at your share.
>/veto files = /.recycle//
> Here the parameters to add at the end of the share parameters.
> Enter your share parameters here.
> vfs objects = recycle
> recycle:repository =.recycle/%u
> recycle:keeptree = yes
> recycle:exclude = *.tmp *.temp
> recycle:exclude_dir = /tmp /temp /cache
> recycle:versions = yes
> recycle:noversion = *.doc *.xls *.ppt
> I like to add tmpwatch script to empty recycle after a period of
> time when the file was deleted. You can find this script at
> I use this on Gentoo.
>Create a bash file and add the following command (168 represent a
>week in hours).
>/usr/sbin/tmpwatch -u 168 /<directory_name>/.recycle
>Just add this script in the crontab and enjoy :-)
>Cybionet - Solution reseautique
>To unsubscribe from this list go to the following URL and read the
>No virus found in this incoming message.
>Checked by AVG. Version: 7.5.472 / Virus Database: 269.9.1/857 -
>Release Date: 6/20/2007 2:18 PM
More information about the samba