Make pv more useful by passing parameters.

Disabling the non-functional progress bar and
adding average and written byte counters.

Signed-off-by: Michael Düll <michael.duell@rub.de>
pull/65/head
Michael Düll 2016-01-18 23:07:52 +01:00
parent d51de98604
commit e7aa692110
1 changed files with 1 additions and 1 deletions

2
btrbk
View File

@ -1279,7 +1279,7 @@ sub btrfs_send_receive($$$$)
name => "btrfs send", name => "btrfs send",
}; };
push @cmd_pipe, { push @cmd_pipe, {
cmd => [ '/usr/bin/pv' ], cmd => [ '/usr/bin/pv', '-traeb' ],
} if($show_progress); } if($show_progress);
push @cmd_pipe, { push @cmd_pipe, {
cmd => [ qw(btrfs receive), @receive_options, $target_path . '/' ], cmd => [ qw(btrfs receive), @receive_options, $target_path . '/' ],