Re: Logrotate

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

 



On Thursday 05 May 2005 16:03, Mark Farmer wrote:
> Hi list
Hi mark
>
> Can anyone tell me if logrotate can be setup to only delete log
> files older than 4 weeks?
> I have a PostgreSQL server running RHEL4 & Postgres 8.0.1 - 
> Postgres rotates the logs itself so I don't need logrotate to do
> that for me, but my DB admin tells me it can't delete them, so I
> just to delete any that are more than 4 weeks old.
surely a cron script using tmpwatch would do this for you?
man tmpwatch
it can remove files based on their inode change time - you'll just 
Reading the manpage it would be best if the logs were in their own 
directory or you'd need lots of exclude lines...

Stuart

-- 
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