Skip to content
Snippets Groups Projects
Commit 407e5d25 authored by Guillaume Subiron's avatar Guillaume Subiron
Browse files

Fix #11311 - Do not fail in borg handler when a file has been removed during backup

parent 387eb85d
No related tags found
1 merge request!51Fix #11311 - Do not fail in borg handler when a file has been removed during backup
......@@ -175,9 +175,17 @@ debug "$nice $execstr"
if [ $test = 0 ]; then
output=`$nice su -c "$execstr" 2>&1`
if [ $? = 0 ]; then
ret=$?
if [ $ret = 0 ]; then
debug $output
info "Successfully finished backing up source."
elif [ $ret = 1 ]; then
if (echo "$output" | grep -q 'No such file or directory') ; then
debug $output
else
warning $output
fi
info "Successfully finished backing up source"
else
error $output
fatal "Failed backing up source."
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment