[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Getting logrotate to rename to YYYY-MM-DD



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Debian Luser wrote:
> I'm trying to make a Debian system rotate its logfiles so that each 
> previous day's logs have YYYY-MM-DD appended to the name (just before

<snip>

> I have checked the list archives, but found nothing that helps me. Am
>  I missing something really obvious?

"man logrotate" is your friend:
/----------------------------
       dateext
              Archive old versions of log files adding a daily extension
              like YYYYMMDD instead of simply adding a number.

\----------------------------

Cheers,

Johannes
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFHmMReC1NzPRl9qEURAg5sAJ9H4Gbazetk7MQVmgdkbH+oSiT6QACfRUFL
+ASXX6gmIjtaRg/sMRzVsTg=
=nadO
-----END PGP SIGNATURE-----


Reply to: