Skip to content
Snippets Groups Projects
Commit fcdbaa34 authored by Jérôme Charaoui's avatar Jérôme Charaoui
Browse files

[borg] add bwlimit config (sets --remote-ratelimit)

parent c9b72249
Branches
No related tags found
No related merge requests found
......@@ -23,6 +23,12 @@
## Default:
# testconnect = yes
## default is not to limit bandwidth.
## set to a number in kiBytes/second to limit bandwidth usage.
##
## Default:
# bwlimit = 0
######################################################
## source section
## (where the files to be backed up are coming from)
......
......@@ -20,6 +20,7 @@ export BORG_RELOCATED_REPO_ACCESS_IS_OK=yes
getconf testconnect yes
getconf nicelevel 0
getconf bwlimit
setsection source
getconf prune yes
......@@ -118,6 +119,10 @@ IFS=$SAVEIFS
set +o noglob
if [ ! -z $bwlimit ]; then
execstr="${execstr} --remote-ratelimit=${bwlimit}"
fi
# include client-part and server-part
execstr="${execstr} ${excludes} $execstr_repository::$execstr_archive ${includes}"
debug "$execstr"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment