Re: [BackupPC-users] XferLog.z : How do I read this thing?
2012-03-20 17:44:11
Richard Shaw <hobbes1069 AT gmail DOT com> wrote on 03/20/2012
05:26:56 PM:
> On Tue, Mar 20, 2012 at 4:06 PM, Timothy J Massey <tmassey AT obscorp DOT com>
wrote:
> >
> > "Jeffrey J. Kosowsky" <backuppc AT kosowsky DOT org>
wrote on 02/10/2012
> 10:35:17 AM:
> >
> > > Seems trivial to me (plus or minus some buffering delay)...
> > >
> > > tail -n +0 -f /path/to/XferLog.Z | BackupPC_zcat
> >
> > I just tried your "trivial" command. It works,
sorta: only after
> it tails the *entire* file. The problem with that is, some of
my
> XferLog file have *millions* of lines... Kinda hard to quickly
> check the end of the file that way--unless you want to wait minutes
> for it to scroll the entire file...
>
> What about:
> BackupPC_zcat /path/to/XferLog.Z | less
>
> Seemed to work for me but my logs aren't very big.
That does the same thing: you have to read and
parse the entire file to get to the end. Hitting <END> makes
it go to the bottom a little faster (no screen I/O), but it still takes
a while...
When you do a "tail -f <file to tail>",
it skips to the (almost) end, displays the last few lines and sits there
waiting for more data. When the data appears, it shows it to you.
*Very* handy for monitoring very long backups to know where you are
in the process. You can leave it running in a terminal window and
glance at it instantly. I've lost that with the compressed log format.
All to save a few hundred megabytes on a server with
multiple *terabytes*...
> Also, an oddity. All my logs end with lower case
z not Z.
Mine are .z as well. It was most likely a mistake
in the original command.
Tim Massey
------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here
http://p.sf.net/sfu/sfd2d-msazure _______________________________________________
BackupPC-users mailing list
BackupPC-users AT lists.sourceforge DOT net
List: https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki: http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/
|
|
|