From 14c5c41e723968da1fae40743f7ca9e18c1fe73e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20D=C3=BCll?= Date: Mon, 18 Jan 2016 23:07:52 +0100 Subject: [PATCH] btrbk: make pv more useful by passing parameters. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Disabling the non-functional progress bar and adding average and written byte counters. Signed-off-by: Michael Düll Remove -e option (-trab instead of -traeb). Also add same options to btrfs_send_to_file(). Signed-off-by: Axel Burri --- btrbk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/btrbk b/btrbk index 24d2723..6151e75 100755 --- a/btrbk +++ b/btrbk @@ -1293,7 +1293,7 @@ sub btrfs_send_receive($$$$) catch_stderr => 1, # hack for shell-based run_cmd() }; push @cmd_pipe, { - cmd => [ '/usr/bin/pv' ], + cmd => [ '/usr/bin/pv', '-trab' ], } if($show_progress); push @cmd_pipe, { cmd => [ qw(btrfs receive), @receive_options, $target_path . '/' ], @@ -1391,7 +1391,7 @@ sub btrfs_send_to_file($$$$;@) name => "btrfs send", }; push @cmd_pipe, { - cmd => [ '/usr/bin/pv' ], + cmd => [ '/usr/bin/pv', '-trab' ], } if($show_progress); if($opts{compress}) { die unless($compress{$opts{compress}});