File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change
1
+ ## 4.1.17 2025-04-17 <dave at tiredofit dot ca >
2
+
3
+ ### Changed
4
+ - Fix issue with Postgres database cleanup when ALL databases being backed up as one file (SPLIT_DB=FALSE)
5
+
6
+
1
7
## 4.1.16 2025-02-21 <dave at tiredofit dot ca >
2
8
3
9
### Added
Original file line number Diff line number Diff line change @@ -846,7 +846,11 @@ backup_pgsql() {
846
846
write_log debug "Not splitting database dumps into their own files"
847
847
prepare_dbbackup
848
848
backup_job_filename=pgsql_all_${backup_job_db_host,,}_${now}.sql
849
- backup_job_filename_base=pgsql_${db}_${backup_job_db_host,,}
849
+ if [ "${backup_job_db_name,,}" = "all" ] ; then
850
+ backup_job_filename_base=pgsql_all_${backup_job_db_host,,}
851
+ else
852
+ backup_job_filename_base=pgsql_${db}_${backup_job_db_host,,}
853
+ fi
850
854
compression
851
855
pre_dbbackup all
852
856
write_log notice "Dumping all PostgreSQL databases: '$(echo ${db_names} | xargs | tr ' ' ',')' ${compression_string}"
You can’t perform that action at this time.
0 commit comments