mirror of
https://github.com/tiredofit/docker-db-backup.git
synced 2025-12-23 14:13:43 +01:00
Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6d1ef87042 | ||
|
|
c985cc8a4f | ||
|
|
2265a6acf5 | ||
|
|
10e7debc65 |
5
.github/workflows/main.yml
vendored
5
.github/workflows/main.yml
vendored
@@ -8,8 +8,7 @@ on:
|
||||
|
||||
jobs:
|
||||
build:
|
||||
#uses: tiredofit/github_actions/.github/workflows/default_amd64_armv7_arm64.yml@main
|
||||
uses: tiredofit/github_actions/.github/workflows/default_amd64_armv7_arm64.yml@main
|
||||
#uses: tiredofit/github_actions/.github/workflows/default_amd64.yml@main
|
||||
#uses: tiredofit/github_actions/.github/workflows/default_amd64_armv7_arm64.yml@main
|
||||
uses: tiredofit/github_actions/.github/workflows/default_amd64_arm64.yml@main
|
||||
#uses: tiredofit/github_actions/.github/workflows/default_amd64_arm64.yml@main
|
||||
secrets: inherit
|
||||
|
||||
5
.github/workflows/manual.yml
vendored
5
.github/workflows/manual.yml
vendored
@@ -9,8 +9,7 @@ on:
|
||||
|
||||
jobs:
|
||||
build:
|
||||
#uses: tiredofit/github_actions/.github/workflows/default_amd64_armv7_arm64.yml@main
|
||||
uses: tiredofit/github_actions/.github/workflows/default_amd64_armv7_arm64.yml@main
|
||||
#uses: tiredofit/github_actions/.github/workflows/default_amd64.yml@main
|
||||
#uses: tiredofit/github_actions/.github/workflows/default_amd64_armv7_arm64.yml@main
|
||||
uses: tiredofit/github_actions/.github/workflows/default_amd64_arm64.yml@main
|
||||
#uses: tiredofit/github_actions/.github/workflows/default_amd64_arm64.yml@main
|
||||
secrets: inherit
|
||||
|
||||
12
CHANGELOG.md
12
CHANGELOG.md
@@ -1,3 +1,15 @@
|
||||
## 3.9.8 2023-08-20 <ToshY@github>
|
||||
|
||||
### Changed
|
||||
- Restore armv7 and aarch64 builds
|
||||
|
||||
|
||||
## 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
|
||||
|
||||
@@ -22,6 +22,7 @@ RUN source /assets/functions/00-container && \
|
||||
package install .db-backup-build-deps \
|
||||
build-base \
|
||||
bzip2-dev \
|
||||
cargo \
|
||||
git \
|
||||
go \
|
||||
libarchive-dev \
|
||||
|
||||
@@ -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
|
||||
@@ -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
|
||||
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user