[Samba] Script to clean the recycles...

Chuck Chauvin clchauvin at edcaugusta.com
Thu Sep 23 14:49:05 GMT 2004


Have you considered using tmpwatch?

http://linux.about.com/library/cmd/blcmdl8_tmpwatch.htm

I use it to delete the files on my TEMP share that are more than 5 days old.

It works quite well.

--
Chuck Chauvin


---------- Original Message -----------
From: Rodrigo Carvalhaes <grupos at carvalhaes.net>
To: samba at lists.samba.org
Sent: Thu, 23 Sep 2004 11:43:34 -0300
Subject: Re: [Samba] Script to clean the recycles...

> Hi Joe!
> 
> Thanks for your promptly answer.
> 
> What I wanna to do is put one script on cron.daily to :
> 
> 1. Clean all the files on the directories .recyycle(see below) that 
> are older than 15 days.
> 
> \files\production\.recycle
> \files\directory\.recycle
> \files\it_teste\.recycle
> \files\adm\sandra\.recycle
> \files\testing\piedro\.recycle
> \files\system\sources\.recycle
> \files\system\testing\.recycle
> \files\system\cvs\.recycle
> 
> 2. Clean all the files on all the user homes that are older than 7 
> days.   I have +/- 50 users and I wanna to make something automatic, 
> that I don´t need to give maintaince on the script after creating a 
> new user...
> 
> Ideas?
> 
> Cheers,
> 
> Rodrigo Miranda Carvalhaes
> DBA PostgreSQL


More information about the samba mailing list