Archive WebSphere Portal SystemOut.log daily via cron job

  1. Create directory:  mkdir -p /opt/IBM/WebSphere/wp_profile/logs/WebSphere_Portal/SystemLog_archive/
  2.  Edit crontab:

$crontab -e

ADD:

 

0 1 * * * find /opt/IBM/WebSphere/wp_profile/logs/WebSphere_Portal/SystemOut_* -type f -mtime +1 -exec mv '{}' /opt/IBM/WebSphere/wp_profile/logs/WebSphere_Portal/SystemLog_archive/ \;

 

 

  •  
  •  
  •  
  •  

Viet Luu has written 318 articles

If you like what you are reading, please consider buying us a coffee ( or 2 ) as a token of appreciation.

Buy Me A Coffee

We are thankful for your never ending support.

Leave a Reply