Log rotation

 
tempsample
Frequent Advisor

Log rotation

Hi

 

 

I need  a help in log rotation from below path.

 

/home/testuser/rotation/run/log   -> file name ending with log

/home/testuser/rotation/run/log2 ->file name ending with log

/home/testuser/rotation/cron/log--> file name starting with user

/home/testuser/bkup   --> file name ending with  info

 /home/testuser/bkup --->file name ending with _home_            2

 /home/testuser/info  ----? file name ending with    "*.csv*"

 

i need to zip the log for 10 days and remove the zipped log files for 50 days