Skip to navigation
How to export a Postgres database with command line
25.10.23
Can use pg_dump ``` #!/bin/bash export PGPASSWORD=MYPASSWORD /usr/bin/pg_dump -h 127.0.0.1 -p 5432 -U dcms MYDBNAME | gzip -9 -f > init/MYDBNAME.sql.gz
https://www.postgresql.org/docs/current/app-pgdump.html
Reply
Anonymous
Information Epoch 1732399864
Make every program a filter.
Home
Notebook
Contact us