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

borg: manage more error codes and to improve the output

parent b37edd26
Branches
No related tags found
No related merge requests found
......@@ -231,9 +231,13 @@ if [ "$test" = 0 ]; then
warning "$output"
warning "Backing up source finished with warnings."
fi
elif [ "$ret" -gt 128 ]; then # borg killed by linux signal
signal=$((ret-128))
warning "$output"
fatal "Failed backing up source. Borg killed by signal ${signal}."
else # borg error
error "$output"
fatal "Failed backuping up source. Borg returned exit code ${ret}."
fatal "Failed backing up source. Borg returned exit code ${ret}."
fi
fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment