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!

link|improve this question
feedback

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
or
required, but never shown

Browse other questions tagged or ask your own question.