Skip to content

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

@EugenMayer

Description

@EugenMayer

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions