Last active
September 22, 2020 09:16
-
-
Save tonioriol/c1ed518fa27bf2b940264adaf2494f07 to your computer and use it in GitHub Desktop.
copy postgres from one app db to another
This file contains 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
# copy postgres from one app db to another | |
heroku pg:copy sushi::ORANGE GREEN --app sushi-staging | |
# This would copy data from the ORANGE database of the sushi app to the GREEN database in sushi-staging. This could be used to copy production data into a staging app for testing purposes. | |
# source: https://devcenter.heroku.com/articles/heroku-postgres-backups#direct-database-to-database-copies |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment