We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8fb2972 + 03d2362 commit 07e74caCopy full SHA for 07e74ca
install/assets/functions/10-db-backup
@@ -336,6 +336,19 @@ backup_pgsql() {
336
check_exit_code move $target
337
post_dbbackup $db
338
done
339
+ prepare_dbbackup
340
+ target=pgsql_globals_${DB_HOST,,}_${now}.sql
341
+ ltarget=pgsql_globals_${DB_HOST,,}
342
+ compression
343
+ pre_dbbackup "globals"
344
+ print_notice "Dumping PostgresSQL globals: 'pg_dumpall -g' ${compression_string}"
345
+ pg_dumpall -h ${DB_HOST} -U ${DB_USER} -p ${DB_PORT} -g | $compress_cmd > ${TEMP_LOCATION}/${target}
346
+ exit_code=$?
347
+ check_exit_code $target
348
+ generate_checksum
349
+ move_dbbackup
350
+ check_exit_code "move backup file"
351
+ post_dbbackup "globals"
352
else
353
print_debug "Not splitting database dumps into their own files"
354
prepare_dbbackup
0 commit comments