Need Script to ZIP/SAVE & then DELETE Log file & DELETE ZIPS older than 12 months

view story

http://www.unix.com – ENVIROMENT Linux: Fedora Core release 1 (Yarrow) iPlanet: iPlanet-WebServer-Enterprise/6.0SP1 Log Path: /usr/iplanet/servers/https-company/logs I have iPlanet log rotation enabled rotating files on a daily basis. The rotated logs are NOT compressed & are taking up too much space. I need a script that will run daily that will do 3 things: 1. Check the folder for uncompressed log files, compress them into a ZIP file 2. Delete the uncompressed log files after they are compressed 3. Check the folder & delete the ZIP log files that are OLDER than 12 months. (HowTos)