mongodb clone database
# Dump remote database to a local folder
mongodump --uri "mongodb+srv://username:password@host/mydb" --out ./myfolder
# Restore the database from the folder to localhost
mongorestore --port 27017 ./myfolder
# (Restore back to the remote)
mongorestore --host=example.com --port=27017 -u username -p password --db mydb ./myFolder# Dump db to a local folder
mongodump mongodb://user:pwd@localhost/old_name -o ./dump
# Restore the db with the new name
mongorestore mongodb://user:pwd@localhost -d new_name ./dump/old_name
# Try this flag if you get an authentication error
--authenticationDatabase admin
Also in C++:
- creating a branch in git
- how to conda install flask-whooshalchemy
- expo cli not installing
- bash message partial match
- node install mint
- git reset initial commit
- database metasploit kali linux
- github allow large files
- install vnc linux mint mate
- running node js on raspberry pi
- jango.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module
- install laravel globally
- gitignore for ue4
- git clean local remote branch
- npm install in dev mode
- install linux
- oh my zsh autocomplete
- tmux set color
- export github branch from one repository to another
- uploading a folder to github
- how to install bootstrap in angular 10
- kill x server
- move files command line windows
- how to install trello on linux