[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-developers] HOW TO: Compress old web logs to separate filenames???
- Subject: Re: [cobalt-developers] HOW TO: Compress old web logs to separate filenames???
- From: "Steve Werby" <steve-lists@xxxxxxxxxxxx>
- Date: Wed May 30 00:19:46 2001
- List-id: Discussion Forum for developers on Cobalt Networks products <cobalt-developers.list.cobalt.com>
"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/