by AlterEgo20 · 11y ago · 0 comments
In short:
pg_dump -Fc mydb > db.dump
Restore: http://www.postgresql.org/docs/current/static/app-pgrestore....In short:
pg_restore -C -d postgres db.dump
Command directly from the shell: psql -c "psql command"pg_dump -C mydb | psql -h ${some_other_server} mydb