projects
/
matthijs
/
upstream
/
backupninja.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added cancel
[matthijs/upstream/backupninja.git]
/
handlers
/
dup
diff --git
a/handlers/dup
b/handlers/dup
index 2d759b0eee22f01155294256ce36e671ef4c1b29..55667f6af63dab9f6fc1e353e703d31deea38d25 100644
(file)
--- a/
handlers/dup
+++ b/
handlers/dup
@@
-19,6
+19,7
@@
getconf exclude
setsection dest
getconf keep 60
getconf sshoptions
setsection dest
getconf keep 60
getconf sshoptions
+getconf bandwidthlimit 0
getconf desthost
getconf destdir
getconf destuser
getconf desthost
getconf destdir
getconf destuser
@@
-43,7
+44,10
@@
fi
### COMMAND-LINE MANGLING ###
### COMMAND-LINE MANGLING ###
-execstr="$options --no-print-statistics --scp-command 'scp $sshoptions' --ssh-command 'ssh $sshoptions' "
+scpoptions="$sshoptions"
+[ "$bandwidthlimit" == 0 ] || scpoptions="$scpoptions -l $bandwidthlimit"
+
+execstr="$options --no-print-statistics --scp-command 'scp $scpoptions' --ssh-command 'ssh $sshoptions' "
if [ "$encryptkey" == "" ]; then
[ "$sign" != "yes" ] || fatal "encryptkey option must be set when signing."
if [ "$encryptkey" == "" ]; then
[ "$sign" != "yes" ] || fatal "encryptkey option must be set when signing."