diff options
author | Andreas Guldstrand <andreas.guldstrand@gmail.com> | 2015-12-28 19:29:09 +0100 |
---|---|---|
committer | Andreas Guldstrand <andreas.guldstrand@gmail.com> | 2015-12-28 19:29:09 +0100 |
commit | cd0d5259b733c90639545d628658bd7c2f613d54 (patch) | |
tree | bde3fb7c02d2dd6e16e6d4596062a9f413bb5d0d /SBO-Lib/lib | |
parent | 66cbe7684ba676f1ba41482c6e8b1d52e608e0c2 (diff) | |
download | sbotools2-cd0d5259b733c90639545d628658bd7c2f613d54.tar.xz |
Add --info=progress2 to rsync arguments
This outputs some information about speed. Fixes #26
Diffstat (limited to 'SBO-Lib/lib')
-rw-r--r-- | SBO-Lib/lib/SBO/Lib.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/SBO-Lib/lib/SBO/Lib.pm b/SBO-Lib/lib/SBO/Lib.pm index 2cb0b4d..0f07fd1 100644 --- 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; } |