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?
As far as i can see, to use a POSTGRES_CLUSTER backup to backup all databases, on need to set
POSTGRES_CLUSTER=truePOSTGRES_DB=authWhat i wonder is, why
POSTGRES_DBwas build to be required in this setup?https://github.com/prodrigestivill/docker-postgres-backup-local/blob/main/backup.sh#L80=
Usually
pg_dumpallis used without that flag https://www.postgresql.org/docs/7.1/app-pg-dumpall.htmlIt set's the default database in this case, but what is the purpose?