Re: [squid-users] SquidNT - Compressing rotated logs

From: Amos Jeffries <squid3@dont-contact.us>
Date: Fri, 21 Sep 2007 00:02:55 +1200

Paul Cocker wrote:
> Since I'm running SquidNT there's no native log rotation method. I'm
> writing a batch file to handle this, but I would like to zip up the
> archive copies of the log to save space, seeing as how store.log and
> access.log are 500MB+ each in less than a week. Thing is, I want to run
> this from the command line, preferably without relying no any 3rd party
> solutions.
>
> I looked at compress.exe in the Windows 2003 Resource Kit, but I'd
> rather take advantage of the built in ZIP folders if possible... plus I
> couldn't figure out in three minutes how to uncompress them, and I don't
> want to rely on people remembering to compress them again after.
>
> Anyone know of a built in method I can use to do this?
>

Last time I scripted compression in Win32 the 'compressed folders' just
used the zip algorithm so any standard .zip utility would make a file
windows can show as a 'compressed folder'. To get the folder icon all
you have to do is zip a whole directory rather than a single file.

Amos
Received on Thu Sep 20 2007 - 06:03:02 MDT

This archive was generated by hypermail pre-2.1.9 : Mon Oct 01 2007 - 12:00:02 MDT