diff --git a/handlers/borg.in b/handlers/borg.in index 168a3aa50f09ce40456974fa1033d9f9a0dd9d0a..eecd2c72fe716dcbdd49e144e7e36c2be1204d77 100644 --- a/handlers/borg.in +++ b/handlers/borg.in @@ -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."