Instantly share code, notes, and snippets.
pg_dump -Fc database -U user > file
pg_restore -Fc -d database -U user -O file