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
e732e847
Commit
e732e847
authored
11 years ago
by
intrigeri
Browse files
Options
Downloads
Patches
Plain Diff
rdiff.helper: add output_as_info support.
Thanks to David Gasaway <dave@gasaway.org> for the patch!
parent
c7a191f2
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/rdiff.helper.in
+23
-0
23 additions, 0 deletions
handlers/rdiff.helper.in
with
23 additions
and
0 deletions
handlers/rdiff.helper.in
+
23
−
0
View file @
e732e847
...
...
@@ -282,12 +282,33 @@ do_rdiff_con() {
setDefault finish
}
do_rdiff_adv
()
{
booleanBox
"
$rdiff_title
"
"Should backupninja write program output as Info messages rather than Debug messages?"
no
if
[
$?
=
0
]
;
then
rdiff_output_as_info
=
yes
else
rdiff_output_as_info
=
no
fi
}
do_rdiff_finish
()
{
get_next_filename
$configdirectory
/90.rdiff
cat
>
$next_filename
<<
EOF
# options = --force
# when = everyday at 02
## should backupninja write program output as Info messages rather than Debug
## messages? (default: no)
## Usually rdiff-backup output (for increment expiration and backup) is written
## to output as Debug messages; this option causes backupninja to use Info-level
## messages instead. Since backup reports include Info messages, this option is
## useful to receive output like rdiff-backup session statistics in reports. In
## addition, since rdiff-backup has a habit of using a zero exit code when
## non-fatal errors are encountered (causing backupninja to conclude the backup
## was entirely successful), this option is useful for inspecting non-fatal
## filesystem and permission errors from rdiff-backup.
output_as_info =
$rdiff_output_as_info
[source]
type = local
keep =
$rdiff_keep
...
...
@@ -378,6 +399,7 @@ rdiff_main_menu() {
src
"
$srcitem
"
\
dest
"
$destitem
"
\
conn
"
$conitem
"
\
adv
"
$advitem
"
\
finish
"finish and create config file"
[
$?
=
0
]
||
return
result
=
"
$REPLY
"
...
...
@@ -411,6 +433,7 @@ rdiff_wizard() {
rdiff_type
=
remote
rdiff_user
=
rdiff_host
=
rdiff_output_as_info
=
"no"
# Global variables whose '*' shall not be expanded
set
-o
noglob
...
...
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