Re: Periodic deletion of old subdirectories

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Oct 07, 2003 at 09:35:45AM +1000, Michael Mansour wrote:
> I have a need to delete subdirectories in a particular
> directory tree if the directories in the tree are
> older than a certain time (say one month). I'd like to
> cron this script to work in the background and clean
> that diretory tree up.
> 
> What the best way/technique to do this?

I run a script called expiredir that I grabbed off the net somewhere
eons ago.  You can pass it various arguments, include number days or
directory sizes, from which it determines what to trim.

I see a version of expiredir at http://www.bogus.net/~torh/ but I don't
know if that is the one I'm actually using, and I'm too lazy to check...

-- 
Ed Wilts, Mounds View, MN, USA
mailto:ewilts@xxxxxxxxxx
Member #1, Red Hat Community Ambassador Program


-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux