Production mongodb replicaset is running on "heroku". Working on a staging setup on AWS for testing purpose. How can I sync my new mongodb instance on AWS with the heroku mongo replicaset data.
I don't want to add AWS mongo instance to production replicaset as any data write on staging will effect production environment.
Any pointers in this direction is greatly needed. Thanks in advance.
If you are intending to sync your staging database once, you can create dump of production server and restore on staging server.
See documentation of mongodump and mongorestore
However, if you trying to keep your staging server in sync with production on continues base without being member of replica set, unfortunately, it's not supported yet.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.