Skip to content
Snippets Groups Projects
Commit cadfdca9 authored by intrigeri's avatar intrigeri
Browse files

Duplicity handler: added "bandwidthlimit" option.

parent 3a6d8d25
No related branches found
No related tags found
No related merge requests found
......@@ -14,6 +14,7 @@ version 0.x -- xxxxxxxxxxxxx
added "nicelevel" option
added "testconnect" option
added "sshoptions" option (will be passed to ssh/scp)
added "bandwidthlimit" option
example.dup example config file for duplicity handler
added trac (http://trac.edgewall.com/) environment handler (thanks Charles Lepple!)
......
......@@ -75,7 +75,10 @@ exclude = /home/*/.gnupg
#keep = 60
#keep = yes
## passed directly to ssh/scp
# bandwith limit, in kbit/s ; default is 0, i.e. no limit
#bandwidthlimit = 128
# passed directly to ssh and scp
sshoptions = -i /root/.ssh/id_dsa_duplicity
# put the backups under this directory
......
......@@ -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."
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment