mirror of
https://github.com/tiredofit/docker-db-backup.git
synced 2025-12-21 13:23:12 +01:00
Split debug statement for backup/move exit codes
This commit is contained in:
@@ -820,9 +820,9 @@ check_availability() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
check_exit_code() {
|
check_exit_code() {
|
||||||
write_log debug "DB Backup Exit Code is ${exit_code}"
|
|
||||||
case "${1}" in
|
case "${1}" in
|
||||||
backup )
|
backup )
|
||||||
|
write_log debug "DB Backup exit Code is ${exit_code}"
|
||||||
case "${exit_code}" in
|
case "${exit_code}" in
|
||||||
0 )
|
0 )
|
||||||
write_log info "DB Backup of '${2}' completed successfully"
|
write_log info "DB Backup of '${2}' completed successfully"
|
||||||
@@ -840,6 +840,7 @@ check_exit_code() {
|
|||||||
esac
|
esac
|
||||||
;;
|
;;
|
||||||
move )
|
move )
|
||||||
|
write_log debug "Move exit Code is ${exit_code}"
|
||||||
case "${move_exit_code}" in
|
case "${move_exit_code}" in
|
||||||
0 )
|
0 )
|
||||||
write_log debug "Moving of backup '${2}' completed successfully"
|
write_log debug "Moving of backup '${2}' completed successfully"
|
||||||
|
|||||||
Reference in New Issue
Block a user