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

This commit is contained in:
Guillaume Subiron 2021-01-07 06:43:29 -08:00
parent 387eb85d70
commit 407e5d251b

View File

@ -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."