Code: Select all
pg_dump db_name | gzip > file.gz
Code: Select all
cat file.gz | gunzip | psql db_name
Code: Select all
pg_dump db_name | gzip > file.gz
Code: Select all
cat file.gz | gunzip | psql db_name
Code: Select all
cat file.gz | gunzip | psql -p #port_number# -U #db_user# -d #database_name#