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
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
lyz
backupninja
Commits
61eb6a74
Commit
61eb6a74
authored
15 years ago
by
olivier
Committed by
intrigeri
15 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Add duplicity output line by line instead of with a whole at one time. Should help fix #536360
parent
a53e8a53
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
handlers/dup.in
+8
-3
8 additions, 3 deletions
handlers/dup.in
with
8 additions
and
3 deletions
handlers/dup.in
+
8
−
3
View file @
61eb6a74
...
...
@@ -263,18 +263,23 @@ fi
### Backup command
debug
"
$precmd
duplicity
$execstr_command
$execstr_options
$execstr_source
--exclude '**' /
$execstr_serverpart
"
if
[
!
$test
]
;
then
outputfile
=
`
maketemp backupout
`
export
PASSPHRASE
=
$password
output
=
`
nice
-n
$nicelevel
\
su
-c
\
"
$precmd
duplicity
$execstr_command
$execstr_options
$execstr_source
--exclude '**' /
$execstr_serverpart
2>&1"
`
"
$precmd
duplicity
$execstr_command
$execstr_options
$execstr_source
--exclude '**' /
$execstr_serverpart
>
$outputfile
2>&1"
`
exit_code
=
$?
debug
$output
cat
$outputfile
|
(
while
read
output
;
do
debug
$output
done
)
if
[
$exit_code
-eq
0
]
;
then
debug
$output
info
"Duplicity finished successfully."
else
debug
$output
fatal
"Duplicity failed."
fi
rm
$outputfile
fi
return
0
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