docker-postgres-backup-local
docker-postgres-backup-local copied to clipboard
Any reason why pg_dumpall is using -l "$DB"
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?