Mongo DB backup restore from one remote location to another remote location
- Login to a machine where mongoshell is installed.
- From inside mongoshell run the command: mongodump --uri "mongodb://
: @ / " --archive | mongorestore --uri "mongodb:// : @ / " --archive --nsExclude "admin.system.*" - Reference: https://www.mongodb.com/docs/atlas/import/mongorestore/
No comments:
Post a Comment