Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
awit-dbackup
awit-dbackup
Commits
fd79e4b3
Commit
fd79e4b3
authored
Jan 24, 2012
by
Nigel Kukard
Browse files
Some more logging fixes
Document version upgrades
parent
79cf32e2
Changes
1
Hide whitespace changes
Inline
Side-by-side
dbackup
View file @
fd79e4b3
...
...
@@ -470,7 +470,10 @@ sub backup
my
$a
=
getNumericVer
(
$origPathAttribs
{
$path
}
->
{'
dbackup.version
'});
my
$b
=
getNumericVer
(
$VERSION
);
# Compare
if
(
$a
<
$b
)
{
if
(
$a
<
16
# Things before 0.0.16 may have .dbackup-state issues and missing
# required info.
)
{
# Check if end in .x
if
(
$VERSION
=~
/\.x$/
)
{
printLog
(
LOG_WARNING
,"
S: Path '[
$source
]/(
$path
)'
"
.
...
...
@@ -864,7 +867,7 @@ sub backup
printLog
(
LOG_ERROR
,"
Failed to execute: $!
\n
");
exit
1
;
}
elsif
(
$?
&
127
)
{
printLog
(
LOG_ERROR
,"
Child died with signal
%s
\n
",
(
$?
&
127
));
printLog
(
LOG_ERROR
,"
Child died with signal
"
.
(
$?
&
127
)
.
"
\n
"
);
exit
1
;
}
else
{
my
$retcode
=
$?
>>
8
;
...
...
@@ -1185,7 +1188,7 @@ sub restore
printLog
(
LOG_ERROR
,"
Failed to execute: $!
\n
");
exit
1
;
}
elsif
(
$?
&
127
)
{
printLog
(
LOG_ERROR
,"
Child died with signal
%s
\n
",
(
$?
&
127
));
printLog
(
LOG_ERROR
,"
Child died with signal
"
.
(
$?
&
127
)
.
"
\n
"
);
exit
1
;
}
else
{
my
$retcode
=
$?
>>
8
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment