Date variable

Kiswono Prayogo kiswono at gmail.com
Wed Nov 4 14:41:42 MSK 2009


cron everyday at 23:55 mv path/to/your/log `date +%Y%m%d`.log
should do the same ^^

On Wed, Nov 4, 2009 at 6:28 PM, Anders Melchiorsen
<mail at spoon.kalibalik.dk>wrote:

> Hi.
>
> Rather than rotating logs, I name my access log files like
> access-YEAR-MONTH.log.
>
> Is this possible with nginx? I was looking a variable containing the
> current date, but did not find any.
>
>
> TIA,
> Anders.
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nginx.org/pipermail/nginx/attachments/20091104/efd4e82b/attachment.html>


More information about the nginx mailing list