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

From: Paul Cocker <paul.cocker@dont-contact.us>
Date: Thu, 20 Sep 2007 13:09:57 +0100

Yes, but this then requires a 3rd party utility to create the ZIP, and I
was looking first for a "Windows only" method. "Compressed folder" is
just how Windows refers to a ZIP archive, be it of a file or a folder or
anything.

Paul Cocker
IT Systems Administrator
IT Security Officer

01628 81(6647)

TNT Post (Doordrop Media) Ltd.
1 Globeside Business Park
Fieldhouse Lane
Marlow
Bucks
SL7 1HY

-----Original Message-----
From: Amos Jeffries [mailto:squid3@treenet.co.nz]
Sent: 20 September 2007 13:03
To: squid-users@squid-cache.org
Subject: Re: [squid-users] SquidNT - Compressing rotated logs

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

TNT Post is the trading name for TNT Post UK Ltd (company number: 04417047), TNT Post (Doordrop Media) Ltd (00613278), TNT Post Scotland Ltd (05695897),TNT Post North Ltd (05701709) and TNT Post South West Ltd (05983401). Emma's Diary and Lifecycle are trading names for Lifecycle Marketing (Mother and Baby) Ltd (02556692). All companies are registered in England and Wales; registered address: 1 Globeside Business Park, Fieldhouse Lane, Marlow, Buckinghamshire, SL7 1HY.
Received on Thu Sep 20 2007 - 06:08:49 MDT

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