Skip to content

Instantly share code, notes, and snippets.

@Sacristan
Last active February 1, 2016 09:30
Show Gist options
  • Save Sacristan/301c64c7d120e2805f44 to your computer and use it in GitHub Desktop.
Save Sacristan/301c64c7d120e2805f44 to your computer and use it in GitHub Desktop.
new dump
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