From 4ed34518f87ff04a0e6aa963825ba5f304c8a7f2 Mon Sep 17 00:00:00 2001 From: Robin Sonnabend <robin@fsmpi.rwth-aachen.de> Date: Mon, 11 Mar 2019 17:37:45 +0100 Subject: [PATCH] Do not dump all tables twice in pg_backup --- postgres/files/pgbackup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/postgres/files/pgbackup.sh b/postgres/files/pgbackup.sh index c1d851e..fcc7469 100755 --- a/postgres/files/pgbackup.sh +++ b/postgres/files/pgbackup.sh @@ -5,5 +5,5 @@ do sudo -u postgres pg_dump -o $DB | gzip -c -- > ${DB}.sql.gz done -sudo -u postgres pg_dumpall -U postgres -o | gzip -c -- > pg_dumpall.sql.gz +sudo -u postgres pg_dumpall -g -U postgres -o | gzip -c -- > pg_dumpall.sql.gz -- GitLab