Skip to content

Instantly share code, notes, and snippets.

@dangerousbeans
Created October 4, 2011 10:55
Show Gist options
  • Save dangerousbeans/1261350 to your computer and use it in GitHub Desktop.
Save dangerousbeans/1261350 to your computer and use it in GitHub Desktop.
Database recreate from remote script
dropdb -h localhost metadata_staging -U postgres && createdb -h localhost -U postgres metadata_staging && pg_dump -h test.dpluse.net metadata_staging && psql metadata_staging postgres < metadata_staging.sql
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment