they should compress much better than that. I compress about 80mb of logs
into <10mb.


"Chuck Larson" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]...
> A months logs uncompressed are about 120 MB and compressed about 45 MB
>
>
> Chuck Larson
> mailto:[EMAIL PROTECTED]
> http://www.tombstone-gaming.com
>
>
> Quoting "Brian A. Stumm" <[EMAIL PROTECTED]>:
>
> >
> > Couple questions for you...
> >
> > How big (file size) is one months worth of log files?
> >
> > How big is one maps regular *.log file for you and how long maps do
> > you
> > run or how much disk space does one days worth of log files take up
> > for
> > you (uncompressed). Trying to get an idea of how big one months logs
> > would
> > be compressed for *my* situation...
> >
> > Thanks.
> >
> >
> > On Wed, 5 Jun 2002, Chuck Larson wrote:
> >
> > > I wrote one that I use with cron that tars and gzips last months
> > logs
> > > into a seperate directory then deletes last months logs.
> > >
> > > I do this on the 15 of every month since I rarely have to go back
> > more
> > > than 2 weeks.
> > >
> > > You could modify this to suit your needs I'm sure
> > >
> > >
> > > # ----- Start of script
> > >
> > > #!/bin/bash
> > > #
> > > # Archives last months hlds_linux logs
> > > #
> > >
> > > MONTH=`date '+%m' --date='1 month ago'`
> > > YEAR=`date '+%Y' --date='1 month ago'`
> > >
> > > # Location of HLDS log directory
> > > LOGSDIR='/usr/games/hlife/hlds_l/cstrike/logs'
> > >
> > > # Location to place tarball
> > > ARCHIVE='/usr/games/hlife/logArchives'
> > >
> > > if [ $YEAR ]
> > > then
> > >         if [ $MONTH ]
> > >         then
> > >             cd $LOGSDIR
> > >                 echo Archiving last months logs
> > >                 if [ -e `tar -zcf
> > $ARCHIVE/logs_$YEAR-$MONTH.tar.gz
> > > L$MONTH*` ]
> > >                 then
> > >                         echo Removing last months logs
> > >                         rm -rf L$MONTH*
> > >                 else
> > >                         echo Error Archiving logs
> > >                 fi
> > >         else
> > >                 echo Error determing last month value
> > >         fi
> > > else
> > >    echo Error determining last month and year values
> > > fi
> > >
> > > # --- END SCRIPT
> > > Chuck Larson
> > > mailto:[EMAIL PROTECTED]
> > > http://www.tombstone-gaming.com
> > >
> > >
> > > Quoting "Brian A. Stumm" <[EMAIL PROTECTED]>:
> > >
> > > > Has anyone written or found a shell script or the like used to
> > > > automatically delete log files that are a certain number of days
> > old?
> > > > I'd
> > > > like to keep a solid months worth of log files (31 maybe 35 days
> > or
> > > > so).
> > > > I'm imagining a shell script that is croned to run once a day
> > > > deleting
> > > > files older than a certain age. I'm sure I could figure something
> > out
> > > > but
> > > > thought I'd ask if anyone else is doing something similar.
> > > >
> > > > --
> > >
> > >
> > > -------------------------------------------------
> > > This mail sent through IMP: http://horde.org/imp/
> > > _______________________________________________
> > > To unsubscribe, edit your list preferences, or view the list
> > archives, please visit:
> > > http://list.valvesoftware.com/mailman/listinfo/hlds_linux
> > >
> >
> > --
> >                                                        a8888b.
> > Brian A. Stumm                                        d888888b.
> > [EMAIL PROTECTED]                                       8P"YP"Y88
> > http://www.bs-linux.com                               8|o||o|88
> > The Choice of a Gnu Generation                        8'    .88
> >                                                       8`._.' Y8.
> >               #                                      d/      `8b.
> > ####         ###                                   .dP   .     Y8b.
> >  ##           #                                   d8:'   "
> > `::88b.
> >  ##       ###   ### ###   ###   ###  ###   ###   d8"
> > `Y88b
> >  ##      #  ##   ###   ##  ##    ##   ##   ##   :8P     '
> > :888
> >  ##     #   ##   ##    ##  ##    ##     ###      8a.    :
> > _a88P
> >  ##        ###   ##    ##  ##    ##     ###    ._/"Yaa_ :    .|
> > 88P|
> >  ##     # ###    ##    ##  ##    ##    ## ##   \    YP"      `| 8P
> > `.
> >  ##    ## ### #  ##    ##  ###  ###   ##   ##  /     \._____.d|
> > .'
> > #########  ###  ####  ####   ### ### ###   ### `--..__)888888P`._.'
> >
> >
> > _______________________________________________
> > To unsubscribe, edit your list preferences, or view the list
> > archives, please visit:
> > http://list.valvesoftware.com/mailman/listinfo/hlds_linux
> >
>
>
> -------------------------------------------------
> This mail sent through IMP: http://horde.org/imp/


_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please visit:
http://list.valvesoftware.com/mailman/listinfo/hlds_linux

Reply via email to