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

Re: [cobalt-developers] HOW TO: Compress old web logs to separate filenames???



"Ervin Tarkhanian" <ervin@xxxxxxxxxx> wrote:
> For that matter, if I could include the date into the filename, that would
> be even better.
>
> web.log.010527.gz
> web.log.010528.gz
> web.log.010529.gz

I don't have logrotate handy, but you may be able to embed a date command in
backticks.  I do so in my own backup scripts.

[from the shell, test this] echo `date +%Y-%m-%d` => 2001-05-30

--
Steve Werby
President, Befriend Internet Services LLC
http://www.befriend.com/