Add hints to borg backup error logging

I spent a number of hours recently trying to debug why mysqldump stopped
working. In reality it appears that the problem was borg-backup's ssh
connectivity causing the mysql-dump to not be able to stream properly.
Add a logging note about checking the other half of backup streaming
when the streaming script fails to try and make it more obvious this may
ocurr.

Change-Id: Idf53fc9e61f05077b954d730d88beab0cc1db09b
This commit is contained in:
Clark Boylan 2023-12-11 08:42:04 -08:00
parent 4d25261bb6
commit dda97505d8

View File

@ -46,6 +46,7 @@ do
_status=( "${PIPESTATUS[@]}" )
if [[ ${_status[0]} -ne 0 ]]; then
info "Streaming script ${f} failed!"
info "Note that problems in the ssh connectivity might cause the streaming script to fail. You may need to check both halves of the streaming backup."
stream_exit=${_status[0]}
elif [[ ${_status[1]} -ne 0 ]]; then
info "Borg failed (rc: ${_status[1]})!"