Bash Script to Compress / Transfer / Remove Log Files
- by Jason
I am currently using chronolog to set log file names for Apache with date. They are in the following format:
/WEB/LOGS/APACHE_ACCESS_YYYY-MM-DD.log
/WEB/LOGS/APACHE_ERROR_YYYY-MM-DD.log
I would like to have a script that runs on the first of every month and compresses the log files from the previous month, transfers them to another host (via…