Dump All Databases To A SQL File
$ pg_dumpall > postgres_13_1_cluster_dump.sql$ pg_dumpall \
--exclude-database="template*" \
> postgres_13_1_cluster_dump.sql$ psql -f postgres_13_1_cluster_dump.sql postgresLast updated
$ pg_dumpall > postgres_13_1_cluster_dump.sql$ pg_dumpall \
--exclude-database="template*" \
> postgres_13_1_cluster_dump.sql$ psql -f postgres_13_1_cluster_dump.sql postgresLast updated