Created
February 14, 2013 17:44
-
-
Save powellc/4954592 to your computer and use it in GitHub Desktop.
A simple shell script to drop a staging database and clone the production database in it's place
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
| sudo -u postgres dropdb <staging_db> | |
| sudo -u postgres createdb -O <staging_user> -T <production_db> <staging_db> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment