Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
backupninja
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Liberate
backupninja
Commits
cadfdca9
Commit
cadfdca9
authored
19 years ago
by
intrigeri
Browse files
Options
Downloads
Patches
Plain Diff
Duplicity handler: added "bandwidthlimit" option.
parent
3a6d8d25
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
changelog
+1
-0
1 addition, 0 deletions
changelog
etc/backup.d/example.dup
+4
-1
4 additions, 1 deletion
etc/backup.d/example.dup
handlers/dup
+5
-1
5 additions, 1 deletion
handlers/dup
with
10 additions
and
2 deletions
changelog
+
1
−
0
View file @
cadfdca9
...
...
@@ -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!)
...
...
This diff is collapsed.
Click to expand it.
etc/backup.d/example.dup
+
4
−
1
View file @
cadfdca9
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
handlers/dup
+
5
−
1
View file @
cadfdca9
...
...
@@ -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."
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment