Forum Moderators: phranque
you could use a cron job to rename your current and archived log files by generation, replacing the oldest generation each time.
for example, if you wanted to archive 4 generations, your script might look like:
apachectl stop
mv /path/to/access_log.3 /path/to/access_log.4
mv /path/to/access_log.2 /path/to/access_log.3
mv /path/to/access_log.1 /path/to/access_log.2
mv /path/to/access_log /path/to/access_log.1
apachectl start