Skip to content

Instantly share code, notes, and snippets.

@cdimascio
Last active June 6, 2018 18:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cdimascio/35e4179543435a5df4878952d94c887e to your computer and use it in GitHub Desktop.
Save cdimascio/35e4179543435a5df4878952d94c887e to your computer and use it in GitHub Desktop.
Compose MongoDB mongodump/mongorestore
mongodump --host your-hostname --port your-port --ssl --sslAllowInvalidCertificates --db=your-db-name --archive=./ep-ao-dump -u admin -p your-password --authenticationDatabase admin
mongorestore --host your-host --port your-port --ssl --sslAllowInvalidCertificates --db=your-db-name --archive=ep-ao-dump -u admin -p your-password --authenticationDatabase admin dump/your-db-name
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment