开发者

Transfer MongoDB to another server?

开发者 https://www.devze.com 2023-03-20 04:35 出处:网络
If I populate a MongoDB instance on my local machine, can I wholesale transfer that database to a server and have it work without too much effort?

If I populate a MongoDB instance on my local machine, can I wholesale transfer that database to a server and have it work without too much effort?

The reason I ask is that my server is currently an Amazon EC2 Micro instance and I need to put LOTS of data into a MongoDB and don't think I can spare the transactions and bandwidth 开发者_Python百科on the EC2 instance.


There is copy database command which I guess should be good fit for your need.

Alternatively, you can just stop MongoDb, copy the database files to another server and run an instance of MongoDb there.

0

精彩评论

暂无评论...
验证码 换一张
取 消