如何将PostgreSQL数据迁移到Heroku [英] How to migrate PostgreSQL data to Heroku
本文介绍了如何将PostgreSQL数据迁移到Heroku的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我从EC2转到Heroku,而且我有一个共享数据库,所以我不能使用 psql
恢复数据库。
I'm moving from EC2 to Heroku, and I got a shared database so I cannot use psql
to restore the database.
任何想法或策略来移动这个?
Any ideas or strategies to move this?
我现在可以想到的唯一选择是将数据转储到Django中(他们使用JSON对于那个)和迁移。
The only option I can think of right now would be to dump the data in Django (they use JSON for that) and migrate.
我有一个Django应用程序和一个20GB的共享PostgreSQL数据库。
I have a Django app and a 20GB shared PostgreSQL database.
推荐答案
http://devcenter.heroku.com/articles/pgbackups#importing_from_a_backup
这篇关于如何将PostgreSQL数据迁移到Heroku的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文