Last active
July 21, 2016 18:56
-
-
Save josephbridgwaterrowe/398f0398467b765690fedcf5fa542452 to your computer and use it in GitHub Desktop.
PostgreSQL dump and restore
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pg_dump DB_URL --clean --if-exists --no-owner --no-acl --file /tmp/db.dmp | |
psql (DB_URL | -d DB_NAME) < /tmp/db.dmp |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment