Created
December 27, 2015 13:28
-
-
Save ekhabarov/b024d55a5e04a37b38c8 to your computer and use it in GitHub Desktop.
PG database backup
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 -f dbname-2015-12-27.dump --format=d -j 4 -v -x -O --compress=7 dbname | |
| tar -zcvf dbname-2015-12-27.dump.tar dbname-2015-12-27.dump/ | |
| pg_restore -d dbname_test_backup dbname-2015-12-27.dump -v |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment