commit cd0d5259b733c90639545d628658bd7c2f613d54
parent 66cbe7684ba676f1ba41482c6e8b1d52e608e0c2
Author: Andreas Guldstrand <andreas.guldstrand@gmail.com>
Date: Mon, 28 Dec 2015 19:29:09 +0100
Add --info=progress2 to rsync arguments
This outputs some information about speed. Fixes #26
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/SBO-Lib/lib/SBO/Lib.pm b/SBO-Lib/lib/SBO/Lib.pm
@@ -286,7 +286,7 @@ sub rsync_sbo_tree {
exists $_[0] or script_error('rsync_sbo_tree requires an argument.');
my $url = shift;
$url .= '/' unless $url =~ m!/$!; # make sure $url ends with /
- my @args = ('rsync', '-a', '--exclude=*.tar.gz', '--exclude=*.tar.gz.asc', '--delete', $url);
+ my @args = ('rsync', '--info=progress2', '-a', '--exclude=*.tar.gz', '--exclude=*.tar.gz.asc', '--delete', $url);
return system(@args, $repo_path) == 0;
}