Hello! We are running our annual fundraising. Please consider making a donation if you value this freely available service or want to support people around the world working towards liberatory social change. https://riseup.net/donate.

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
......@@ -175,9 +175,17 @@ debug "$nice $execstr"
if [ $test = 0 ]; then
output=`$nice su -c "$execstr" 2>&1`
if [ $? = 0 ]; then
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
warning $output
info "Successfully finished backing up source"
error $output
fatal "Failed backing up source."
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