Xymon Mailing List Archive search

cleaning old data

2 messages in this thread

list Daniel Bourque · Mon, 30 Jun 2008 13:23:59 -0500 ·
Hi,

    I only want to keep 1 year of historical data

can I simply cron  :

/opt/hobbit/data$ find . -type f -mtime +360 -exec rm {} \;


Without breaking anything ?

Thanks

-- 
Dan
list Doug Linder · Mon, 30 Jun 2008 15:00:48 -0400 ·
quoted from Daniel Bourque
Daniel Bourque [mailto:user-a141068964db@xymon.invalid] wrote:
I only want to keep 1 year of historical data
can I simply cron  :
/opt/hobbit/data$ find . -type f -mtime +360 -exec rm {} \;
Without breaking anything ?

Use the trimhistory command.


Doug Linder