File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed
Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -332,6 +332,19 @@ backup_pgsql() {
332332 check_exit_code "move backup file"
333333 post_dbbackup $db
334334 done
335+ prepare_dbbackup
336+ target=pgsql_globals_${DB_HOST,,}_${now}.sql
337+ ltarget=pgsql_globals_${DB_HOST,,}
338+ compression
339+ pre_dbbackup "globals"
340+ print_notice "Dumping PostgresSQL globals: 'pg_dumpall -g' ${compression_string}"
341+ pg_dumpall -h ${DB_HOST} -U ${DB_USER} -p ${DB_PORT} -g | $compress_cmd > ${TEMP_LOCATION}/${target}
342+ exit_code=$?
343+ check_exit_code $target
344+ generate_checksum
345+ move_dbbackup
346+ check_exit_code "move backup file"
347+ post_dbbackup "globals"
335348 else
336349 print_debug "Not splitting database dumps into their own files"
337350 prepare_dbbackup
You can’t perform that action at this time.
0 commit comments