6 月 092010
原文: logrotate rename files with date – Server Fault
In /etc/logrotate.conf or /etc/logrotate.d/lighttpd, or the proper file if anywhere else, add dateext to the stanza you want to apply date suffixes.
More information from logrotate man page:
dateext
Archive old versions of log files adding a daily extension like YYYYMMDD instead of simply adding a number.