[英]Migrate Meteor MongoDB from one VPS to another?
I'm trying to transfer Meteor app or just its MongoDB between different VPS providers. 我正在尝试在不同的VPS提供商之间转移Meteor应用程序或仅转移其MongoDB。
I tried this - Best way to migrate data between two linux VPS and redeployed app to new VPS. 我尝试了这种方法- 在两个Linux VPS和重新部署的应用程序之间迁移数据到新VPS的最佳方法 。 I got an empty app so now I'm trying to find a way to move MongoDB too.
我有一个空应用程序,所以现在我也试图找到一种移动MongoDB的方法。
Also found this - Migrating from Meteor Hosting (.meteor.com) to my own VPS but don't know how to apply this to a production app on Digital Ocean. 还发现了这一点- 从Meteor Hosting(.meteor.com)迁移到我自己的VPS,但不知道如何将其应用于Digital Ocean上的生产应用程序。
Looking for any advice on this, thanks. 寻找有关此的任何建议,谢谢。
只需在第一个VPS上发出mongodump
命令,然后将其创建的文件复制到其他VPS,然后运行mongorestore
命令即可。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.