progress & redirects

Adam Doppelt amd at tivo.com
Thu May 6 17:53:28 GMT 2004


The rsync jobs take several hours to run and I check up on them from time to
time. The new progress features (110, 10% of 1100) are especially nice and I
don't want to lose them.

I can definitely script my way around this one but it's also possible to
solve it nicely within rsync.

Adam

----- Original Message ----- 
From: "Tim Conway" <conway at us.ibm.com>
Cc: <rsync at lists.samba.org>
Sent: Thursday, May 06, 2004 10:49 AM
Subject: Re: progress & redirects


> How about not using --progress when it's running from cron? ... unless
> you're tailing  the logfile, which should also work fine as-is.
> If you need to process the logs otherwise later, feed it to "sed
> 's/^H.*^H///'" to dump the display crap... or is it "^M" instead of "^H"?
> Those aren't literals.  Produce them by doing a control-V followed by
> control-H or control-M as needed.
>
> Tim Conway
> Unix System Administration
> Contractor - IBM Global Services
> desk:3032734776
> conway at us.ibm.com
>
>
> Hi. I use rsync to suck down a large amount of data every night using a
> cron job that logs to a file. If you run rsync --progress and redirect to
> a log file you end up with the progress for each file piled up onto a
> single line. \r is generally ignored by editors and viewers. That leads to
> my question...
>
> Would it be possible to have rsync output log-friendly progress if output
> is redirected?
>
> For an example of how this can work, check out wget. When run in a shell,
> it outputs a beautiful, dynamic progress bar. When output is redirected it
> outputs periods instead.
>
> -- 
> To unsubscribe or change options:
http://lists.samba.org/mailman/listinfo/rsync
> Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html



More information about the rsync mailing list