Script to remove files older than 30 days?

Alex Beamish talexb-Re5JQEeQqe8AvxtiuMwx3w at public.gmane.org
Mon Jun 12 15:06:29 UTC 2006


On 6/11/06, Walter Dnes <waltdnes-SLHPyeZ9y/tg9hUCZPvPmw at public.gmane.org> wrote:
>
>   This sounds like something that's probably been done for other
> reasons.  In Gentoo linux, source tarballs and patches are downloaded to
> /usr/portage/distfiles.  And they accumulate there.  I prefer not to
> blow them all away immediately.  There are often 1-line patches later on
> that assume the presence of the original umpteen megabyte tarball.  If
> it's not there, it has to be downloaded again, and the 1-line patch
> applied to it.  I think that the best approach would be to delete files
> after 30 days or so.
>
>   So is thare a generic "aging out" script anywhere?


Many years ago, I spent a little time writing a Perl script to clear the
/tmp directory of files that I was creating .. only to discover that someone
else had already encountered that problem and solved it. A long time ago. In
this case, tmpwatch is your friend.

-- 
Alex Beamish
Toronto, Ontario
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://gtalug.org/pipermail/legacy/attachments/20060612/e61bf547/attachment.html>


More information about the Legacy mailing list