PPRuNe Forums - View Single Post - Linux Corner
Thread: Linux Corner
View Single Post
Old 7th Oct 2010, 19:43
  #378 (permalink)  
LH2
 
Join Date: May 2005
Location: Abroad
Posts: 1,172
Likes: 0
Received 0 Likes on 0 Posts
Originally Posted by txdmy1
copy them daily and compress to an oldlogs directory with a cron script. Delete any over 30 days old in oldlogs within same script, simples.
man logrotate

As the OP is using OpenSUSE, this will do the trick: zypper install logrotate
LH2 is offline