Created
July 24, 2014 21:06
-
-
Save ewalk153/8a1604ab8ac3f97d757a to your computer and use it in GitHub Desktop.
Faster restore of postgres backup by ignoring certain data
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_restore -l cr2.dump > db.list | |
| # edit db.list | |
| pg_restore --verbose --clean --no-acl --no-owner -h {HOST} -U {USER} -d {DATABASE} -L db.list cr2.dump |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment