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

borg: manage more error codes and to improve the output

parent 06d2da6b
No related branches found
No related tags found
1 merge request!70borg: manage more error codes and to improve the output
......@@ -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.
Finish editing this message first!
Please register or to comment