By booooo
I want to mirror my main database to my localhost so I have similar data throughout my development environment. Curious what the best way to do that with a managed DB, because I don’t have access to SSH so i can’t follow some of the replication tutorials out there.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hi there,
What you could do is to follow the steps here on how to export and import a collection from MongoDB:
The tutorial is not specifically for a managed cluster, but you can run the mongoexport command as described there, just specify the cluster connection details with --uri "cluster-connection-string" flag.
For an example on how to use MongoDB CLI tools with a managed cluster, you can take a look that eh documentation here:
https://docs.digitalocean.com/products/databases/mongodb/how-to/import-collections/
Hope that this helps!
Best,
Bobby
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.