Commit 8cf0a729 authored by Nigel Kukard's avatar 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
......@@ -41,7 +41,7 @@ use MIME::Base64;
my $VERSION = "0.0.19a";
my $VERSION = "0.0.19b";
# 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;
}
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment