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 | |
|---|---|---|---|
|
|
399727cd37 | ||
|
|
f58de70dc4 | ||
|
|
5ab0cbe7c5 | ||
|
|
9d5406b6a9 |
12
CHANGELOG.md
12
CHANGELOG.md
@@ -1,3 +1,15 @@
|
||||
## 4.1.18 2025-05-12 <dave at tiredofit dot ca>
|
||||
|
||||
### Changed
|
||||
- Fix MongoDB restore from not dropping DB each time before restore except explicitly told (credit logicoa@github)
|
||||
|
||||
|
||||
## 4.1.17 2025-04-17 <dave at tiredofit dot ca>
|
||||
|
||||
### Changed
|
||||
- Fix issue with Postgres database cleanup when ALL databases being backed up as one file (SPLIT_DB=FALSE)
|
||||
|
||||
|
||||
## 4.1.16 2025-02-21 <dave at tiredofit dot ca>
|
||||
|
||||
### Added
|
||||
|
||||
@@ -846,7 +846,11 @@ backup_pgsql() {
|
||||
write_log debug "Not splitting database dumps into their own files"
|
||||
prepare_dbbackup
|
||||
backup_job_filename=pgsql_all_${backup_job_db_host,,}_${now}.sql
|
||||
if [ "${backup_job_db_name,,}" = "all" ] ; then
|
||||
backup_job_filename_base=pgsql_all_${backup_job_db_host,,}
|
||||
else
|
||||
backup_job_filename_base=pgsql_${db}_${backup_job_db_host,,}
|
||||
fi
|
||||
compression
|
||||
pre_dbbackup all
|
||||
write_log notice "Dumping all PostgreSQL databases: '$(echo ${db_names} | xargs | tr ' ' ',')' ${compression_string}"
|
||||
|
||||
@@ -1132,9 +1132,6 @@ EOF
|
||||
echo -e "${coff}"
|
||||
read -p "$(echo -e ${clg}** ${cdgy}Enter Value \(${cwh}Y${cdgy}\) \| \(${cwh}N${cdgy}\) \| \(${cwh}Q${cdgy}\) : ${cwh}${coff})" q_menu_mongo_dropdb
|
||||
case "${q_menu_mongo_dropdb,,}" in
|
||||
"y" | "yes" | * )
|
||||
mongo_dropdb="--drop"
|
||||
;;
|
||||
"n" | "update" )
|
||||
unset mongo_dropdb
|
||||
;;
|
||||
@@ -1142,6 +1139,9 @@ EOF
|
||||
print_info "Quitting Script"
|
||||
exit 1
|
||||
;;
|
||||
"y" | "yes" | * )
|
||||
mongo_dropdb="--drop"
|
||||
;;
|
||||
esac
|
||||
|
||||
print_info "Restoring '${r_filename}' into '${r_dbhost}'/'${r_dbname}'"
|
||||
|
||||
Reference in New Issue
Block a user