From cadfdca981b3dd98c2031e2d5c6e8ed5da1ac315 Mon Sep 17 00:00:00 2001 From: intrigeri Date: Fri, 27 May 2005 18:41:40 +0000 Subject: Duplicity handler: added "bandwidthlimit" option. --- handlers/dup | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'handlers') diff --git a/handlers/dup b/handlers/dup index 2d759b0..55667f6 100644 --- a/handlers/dup +++ b/handlers/dup @@ -19,6 +19,7 @@ getconf exclude setsection dest getconf keep 60 getconf sshoptions +getconf bandwidthlimit 0 getconf desthost getconf destdir getconf destuser @@ -43,7 +44,10 @@ fi ### 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." -- cgit v1.2.3