git-svn-id: http://code.autistici.org/svn/backupninja/trunk@116
758a04ac-41e6-0310-8a23-
8373a73cc35d
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!)
#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
setsection dest
getconf keep 60
getconf sshoptions
+getconf bandwidthlimit 0
getconf desthost
getconf destdir
getconf destuser
### 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."