Last active
February 1, 2016 09:30
-
-
Save Sacristan/301c64c7d120e2805f44 to your computer and use it in GitHub Desktop.
new dump
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
ssh deployer@$ip | |
pg_dump --format=c -h localhost --username norden nordenhealth > latest.dump | |
scp deployer@$ip:/home/deployer/latest.dump ~/Desktop/ | |
rake db:drop db:create;and pg_restore --verbose --clean --no-acl --no-owner -h localhost -U girts -d nordenhealth_development ~/Desktop/latest.dump |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment