From 7379427051e05d425cdb74d7a9147c832c9c6405 Mon Sep 17 00:00:00 2001 From: Jeremy Lecour Date: Fri, 31 Mar 2023 17:27:20 +0200 Subject: [PATCH] fix PG dump per base : dump everything and not only the schema --- client/lib/dump.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/lib/dump.sh b/client/lib/dump.sh index 667576c..4df00c5 100644 --- a/client/lib/dump.sh +++ b/client/lib/dump.sh @@ -581,7 +581,7 @@ dump_postgresql_per_base() { local dump_file="${dump_dir}/${database}.sql.gz" log "LOCAL_TASKS - start ${dump_file}" - (sudo -u postgres /usr/bin/pg_dump --create -s -U postgres -d "${database}") 2> "${error_file}" | gzip --best > "${dump_file}" + (sudo -u postgres /usr/bin/pg_dump --create -U postgres -d "${database}") 2> "${error_file}" | gzip --best > "${dump_file}" local last_rc=$? # shellcheck disable=SC2086