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
8cf0a729
Commit
8cf0a729
authored
Sep 25, 2012
by
Nigel Kukard
Browse files
Don't exit if tar fails
If we exit when tar fails we may not get to backup whats after it.
parent
7cfdb436
Changes
1
Hide whitespace changes
Inline
Side-by-side
dbackup
View file @
8cf0a729
...
...
@@ -41,7 +41,7 @@ use MIME::Base64;
my
$VERSION
=
"
0.0.19
a
";
my
$VERSION
=
"
0.0.19
b
";
# System dirs we don't care about
my
@defaultSystemExcl
=
("
/dev
","
/run
","
/proc
","
/sys
","
/tmp
","
/var/tmp
","
/misc
","
/media
","
/mnt
");
# These should be backed up separately
...
...
@@ -892,7 +892,7 @@ sub backup
# If tar died, lets die too
if
(
$retcode
>=
2
)
{
printLog
(
LOG_ERROR
,"
tar died with error code
$retcode
\n
");
exit
1
;
#
exit 1;
}
}
# if (($doBackup{$path} & ST_DIR_SYS) != ST_DIR_SYS) {
...
...
@@ -1213,7 +1213,7 @@ sub restore
# If tar died, lets die too
if
(
$retcode
>=
2
)
{
printLog
(
LOG_ERROR
,"
tar died with error code
$retcode
\n
");
exit
1
;
#
exit 1;
}
}
}
...
...
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