I'm trying to add a date extension to my pure-ftpd.log file after its rotating and the only way I have figured out so far is to add the date extension to the log file after it was rotated, but it rotates yesterday's logfile with TODAY's date..

this was the only way i could figure to sucessfully add a date to the logs

/logs/pure-ftpd.log {
rotate 8
DATE=`date +%F`; mv /logs/pure-ftpd.log.1 /logs/pure-ftpd-$DATE.log

so the end file would be pure-ftpd-2005-09-21.log

but the contents of the log file are the 20's log information i need it to show the date one day

any help would be appreciated :o thanks!