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+
17## 4.1.16 2025-02-21 <dave at tiredofit dot ca >
28
39 ### Added
Original file line number Diff line number Diff line change @@ -846,7 +846,11 @@ backup_pgsql() {
846846 write_log debug "Not splitting database dumps into their own files"
847847 prepare_dbbackup
848848 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
850854 compression
851855 pre_dbbackup all
852856 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