Skip to content

Commit

Permalink
Release 4.0.22 - See CHANGELOG.md
Browse files Browse the repository at this point in the history
  • Loading branch information
tiredofit committed Nov 25, 2023
1 parent cd68364 commit 4579f40
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 1 deletion.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## 4.0.22 2023-11-25 <dave at tiredofit dot ca>

### Changed
- Move cleanup_old_data routines to happen within backup_ function to properly accomodate for globals, and ALL DB_NAME use cases


## 4.0.21 2023-11-22 <dave at tiredofit dot ca>

### Changed
Expand Down
1 change: 0 additions & 1 deletion install/assets/dbbackup/template-dbbackup/run
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,6 @@ while true; do
fi

symlink_log
cleanup_old_data

if var_false "${persist}" ; then
print_debug "Exiting due to manual mode"
Expand Down
13 changes: 13 additions & 0 deletions install/assets/functions/10-db-backup
Original file line number Diff line number Diff line change
Expand Up @@ -482,6 +482,7 @@ backup_couch() {
move_dbbackup
check_exit_code move "${backup_job_filename}"
post_dbbackup ${backup_job_db_name}
cleanup_old_data
}

backup_influx() {
Expand Down Expand Up @@ -522,6 +523,7 @@ backup_influx() {
move_dbbackup
check_exit_code move "${backup_job_filename_dir}"
post_dbbackup "${db}"
cleanup_old_data
done
;;
2 )
Expand Down Expand Up @@ -550,6 +552,7 @@ backup_influx() {
move_dbbackup
check_exit_code move "${backup_job_filename_dir}"
post_dbbackup "${db}"
cleanup_old_data
done
;;
esac
Expand Down Expand Up @@ -586,6 +589,7 @@ backup_mongo() {
move_dbbackup
check_exit_code move "${backup_job_filename}"
post_dbbackup "${backup_job_db_name}"
cleanup_old_data
if var_true "${DEBUG_BACKUP_MONGO}" ; then debug off; fi
}

Expand Down Expand Up @@ -614,6 +618,7 @@ backup_mssql() {
move_dbbackup
check_exit_code move "${backup_job_filename}"
post_dbbackup "${backup_job_db_name}"
cleanup_old_data
;;
trn|transaction )
prepare_dbbackup
Expand All @@ -636,6 +641,7 @@ backup_mssql() {
move_dbbackup
check_exit_code move "${backup_job_filename}"
post_dbbackup "${backup_job_db_name}"
cleanup_old_data
;;
esac
}
Expand Down Expand Up @@ -687,6 +693,7 @@ backup_mysql() {
move_dbbackup
check_exit_code move "${backup_job_filename}"
post_dbbackup "${db}"
cleanup_old_data
done
else
write_log debug "Not splitting database dumps into their own files"
Expand All @@ -707,6 +714,7 @@ backup_mysql() {
move_dbbackup
check_exit_code move "${backup_job_filename}"
post_dbbackup all
cleanup_old_data
fi
}

Expand All @@ -728,6 +736,7 @@ backup_pgsql() {
move_dbbackup
check_exit_code move "${backup_job_filename}"
post_dbbackup "globals"
cleanup_old_data
}

if var_true "${DEBUG_BACKUP_PGSQL}" ; then debug on; fi
Expand Down Expand Up @@ -776,6 +785,7 @@ backup_pgsql() {
move_dbbackup
check_exit_code move "${backup_job_filename}"
post_dbbackup "${db}"
cleanup_old_data
done
if var_true "${_postgres_backup_globals}" ; then backup_pgsql_globals; fi
else
Expand Down Expand Up @@ -805,6 +815,7 @@ backup_pgsql() {
move_dbbackup
check_exit_code move "${backup_job_filename}"
post_dbbackup all
cleanup_old_data
if var_true "${_postgres_backup_globals}" ; then backup_pgsql_globals; fi
fi
}
Expand Down Expand Up @@ -844,6 +855,7 @@ backup_redis() {
move_dbbackup
check_exit_code move "${backup_job_filename}"
post_dbbackup all
cleanup_old_data
}

backup_sqlite3() {
Expand Down Expand Up @@ -872,6 +884,7 @@ backup_sqlite3() {
move_dbbackup
check_exit_code move "${backup_job_filename}"
post_dbbackup "${db}"
cleanup_old_data
}

check_availability() {
Expand Down

0 comments on commit 4579f40

Please sign in to comment.