Created
August 25, 2016 19:56
-
-
Save jonny-novikov/d8ccc57326f5d3c11aacbc8560ab6b49 to your computer and use it in GitHub Desktop.
Postgresql dump and 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
#take full dump | |
pg_dump -i -U user_name -F t -b -v -f "prod.backup" db_name | |
#restore specific table | |
pg_restore -i -U user_name -d db_name -t table_name -v "prod.backup" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment