Last active
February 26, 2019 15:10
-
-
Save waltercool/07b66e42f9e66fafaa9945e2a2b88206 to your computer and use it in GitHub Desktop.
Postgresql Backup&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
Backup: pg_dump -Fc -f /path/to/backup.dump | |
Restore: pg_restore -U <USER> -h <HOST> -d <DATABASE> -Fc -Oxc backup.dump |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment