Results 1 to 1 of 1
Enjoy an ad free experience by logging in. Not a member yet? Register.
- Join Date
- Sep 2005
- Ottawa, Canada
How can i add a proper date extension to a log file after rotating?
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
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!