Created
February 2, 2020 22:41
-
-
Save imsarvesh/7aed0e21e28d36428e0a75558e4ec9b4 to your computer and use it in GitHub Desktop.
MLab Mongo Backup and Restore Locally
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mongodump -h <subdomain>.mlab.com:25372 -u <username> -p <password> --authenticationDatabase <dbname> -d <backup-folder-name> -o ~/Desktop/ | |
&& | |
mongorestore --db <dbname> ~/Desktop/<backup-folder-name>/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment