Skip to content

Commit

Permalink
Release 3.9.7 - See CHANGELOG.md
Browse files Browse the repository at this point in the history
  • Loading branch information
tiredofit committed Jul 18, 2023
1 parent 94e9881 commit 10e7deb
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 14 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## 3.9.7 2023-07-18 <dave at tiredofit dot ca>

### Changed
- Cleanup check_exit_code parameter and reduce duplicate output


## 3.9.6 2023-06-16 <dave at tiredofit dot ca>

### Changed
Expand Down
17 changes: 3 additions & 14 deletions install/assets/functions/10-db-backup
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ backup_mongo() {
print_notice "Dumping MongoDB database: '${DB_NAME}' ${compression_string}"
silent mongodump --archive=${TEMP_LOCATION}/${target} ${mongo_compression} ${mongo_backup_parameter}
exit_code=$?
check_exit_code $target
check_exit_code backup $target
generate_checksum
move_dbbackup
check_exit_code move $target
Expand Down Expand Up @@ -289,7 +289,7 @@ backup_mysql() {
print_notice "Dumping all MySQL / MariaDB databases: '$(echo ${db_names} | xargs | tr ' ' ',')' ${compression_string}"
mysqldump --max-allowed-packet=${MYSQL_MAX_ALLOWED_PACKET} -h ${DB_HOST} -P ${DB_PORT} -u${DB_USER} ${single_transaction} ${stored_procedures} ${mysql_tls_args} ${EXTRA_OPTS} --databases $(echo ${db_names} | xargs) | $compress_cmd > "${TEMP_LOCATION}"/"${target}"
exit_code=$?
check_exit_code $target
check_exit_code backup $target
generate_checksum
move_dbbackup
check_exit_code move $target
Expand Down Expand Up @@ -531,23 +531,12 @@ check_exit_code() {
print_debug "Moving of backup '${2}' completed successfully"
;;
* )
print_error "Moving of backup '${1}' reported errors"
print_error "Moving of backup '${2}' reported errors"
master_exit_code=1
;;
esac
;;
esac


case "${exit_code}" in
0 )
print_info "DB Backup of '${1}' completed successfully"
;;
* )
print_error "DB Backup of '${1}' reported errors"
master_exit_code=1
;;
esac
}

cleanup_old_data() {
Expand Down

0 comments on commit 10e7deb

Please sign in to comment.