[Samba] Script to clean the recycles...

Bob Crandell bob at assuredcomp.com
Thu Sep 23 14:31:28 GMT 2004


This is what I use:
/usr/bin/find /home/samba/Prgs/.recycle -type f -mtime +5 -exec /bin/rm {} \;

I suppose you know you will need one for each share.

It would be nice if there was a variable one could set so recycle.so would
limit how old the files get.  This could be either per share or globally.

I hope this helps.

Rodrigo Carvalhaes (grupos at carvalhaes.net) wrote:
> Hi!
> I implemented the vfs reclycle and it´s really good!
> Now, I wanna to put on my monthly cron a script to clean old recycles...
> Someone have examples to send me ? Tips?
> Thanks !
> Cheers
> Rodrigo Miranda Carvalhaes

Bob Crandell, CNS
Assured Computing, Inc.
When you need to be sure.
P.O. Box 40814
Eugene, OR 97404
Voice - 541-868-0331
FAX - 541-463-1627

More information about the samba mailing list