docker-postgres-backup-local icon indicating copy to clipboard operation
docker-postgres-backup-local copied to clipboard

Any reason why pg_dumpall is using -l "$DB"

Open EugenMayer opened this issue 2 years ago • 0 comments

As far as i can see, to use a POSTGRES_CLUSTER backup to backup all databases, on need to set

  • POSTGRES_CLUSTER=true
  • POSTGRES_DB=auth

What i wonder is, why POSTGRES_DB was build to be required in this setup?

https://github.com/prodrigestivill/docker-postgres-backup-local/blob/main/backup.sh#L80=

Usually pg_dumpall is used without that flag https://www.postgresql.org/docs/7.1/app-pg-dumpall.html

It set's the default database in this case, but what is the purpose?

EugenMayer avatar Apr 10 '22 15:04 EugenMayer