it's possible to configure logrotate to create an olddir per day?
I'd like to get the same bash result, like this:
user@blade1022m:~$ date "+%y%m%d"
120208
In /etc/logrotate.conf (pseudo-code):
/home/mhd-01/logs/*.log {
daily
missingok
rotate 62
olddir /home/mhd-01/logs/archive/${`date "+%y%m%d"`}/
postrotate
/etc/init.d/apache2 restart
}
Thanks all!