Richard Shaw <[email protected]> wrote on 03/20/2012 05:26:56 PM:

> On Tue, Mar 20, 2012 at 4:06 PM, Timothy J Massey <[email protected]> 
wrote:
> >
> > "Jeffrey J. Kosowsky" <[email protected]> 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
 
Out of the Box Solutions, Inc. 
Creative IT Solutions Made Simple!
http://www.OutOfTheBoxSolutions.com
[email protected] 
 
22108 Harper Ave.
St. Clair Shores, MI 48080
Office: (800)750-4OBS (4627)
Cell: (586)945-8796 
------------------------------------------------------------------------------
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
[email protected]
List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:    http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/

Reply via email to