No, we can't do that because too many people depend on that output.
The --log-format option is what's intended to be used for people who
want to control the output. Try it out; there's been a lot of talk of
improvements, but what's there now may be enough for you. You'll need
to
look at the rsyncd.conf man page to find out the format syntax.
Alternatively, you can put the output of rsync through your own filter that
cuts out those extra lines.
- Dave
On Wed, Jul 31, 2002 at 10:58:03AM -0400, Roderick Schertler
wrote:> It would be nice if there were a flag which would have rsync behave
> like a single -v but which would skip the two line summary info. I do
> a lot of cron-based transfers and I want to see what gets transferred
> if anything does, but I'd like it to be entirely silent otherwise.
>
> Here is a patch which makes a single -v behave this way. -vv causes it
> to include the extra info.
>
> diff -r -X /home/roderick/.diff-exclude -u rsync-2.5.5.debian/flist.c
rsync-2.5.5/flist.c
> --- rsync-2.5.5.debian/flist.c Thu Mar 14 16:20:20 2002
> +++ rsync-2.5.5/flist.c Wed Jul 31 09:13:10 2002
> @@ -72,7 +72,7 @@
>
> static int show_filelist_p(void)
> {
> - return verbose && recurse && !am_server;
> + return verbose > 1 && recurse && !am_server;
> }
>
> static void start_filelist_progress(char *kind)
> diff -r -X /home/roderick/.diff-exclude -u rsync-2.5.5.debian/main.c
rsync-2.5.5/main.c
> --- rsync-2.5.5.debian/main.c Wed Mar 27 00:10:44 2002
> +++ rsync-2.5.5/main.c Wed Jul 31 09:13:10 2002
> @@ -118,7 +118,7 @@
> (double)stats.total_read);
> }
>
> - if (verbose || do_stats) {
> + if (verbose > 1 || do_stats) {
> rprintf(FINFO,"wrote %.0f bytes read %.0f bytes %.2f
bytes/sec\n",
> (double)stats.total_written,
> (double)stats.total_read,
> diff -r -X /home/roderick/.diff-exclude -u rsync-2.5.5.debian/rsync.1
rsync-2.5.5/rsync.1
> --- rsync-2.5.5.debian/rsync.1 Wed Feb 6 16:21:19 2002
> +++ rsync-2.5.5/rsync.1 Wed Jul 31 09:13:10 2002
> @@ -338,9 +338,9 @@
> This option increases the amount of information you
> are given during the transfer\&. By default, rsync works
silently\&. A
> single -v will give you information about what files are being
> -transferred and a brief summary at the end\&. Two -v flags will give
you
> -information on what files are being skipped and slightly more
> -information at the end\&. More than two -v flags should only be used
if
> +transferred\&. Two -v flags will also give you information on what
> +files are being skipped and a summary at the end\&. More than two
> +-v flags should only be used if
> you are debugging rsync\&.
> .IP
> .IP "\fB-q, --quiet\fP"
>
> --
> Roderick Schertler
> roderick@argon.org
>
> --
> To unsubscribe or change options:
http://lists.samba.org/mailman/listinfo/rsync
> Before posting, read: http://www.tuxedo.org/~esr/faqs/smart-questions.html