Created
July 3, 2014 12:29
-
-
Save furkanayhan/2a1d8ac5994992a0f925 to your computer and use it in GitHub Desktop.
Postgresql backup and restore (pg_dump - pg_restore)
This file contains 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 -h localhost -U USERNAME -f backup.dump DATABASENAME -Fc | |
pg_restore --verbose --clean --no-acl --no-owner -h localhost -U USERNAME -d DATABASENAME backup.dump |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment