Horje
clone mongodb database to local machine Code Example
clone mongodb database to local machine
# 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
mongodb copy database from remote to local
db.copyDatabase("DATABASENAME", "DATABASENAME", "localhost:27018");




Shell

Related
edit sshd_config Code Example edit sshd_config Code Example
install jdk linux Code Example install jdk linux Code Example
list xcode version on mac Code Example list xcode version on mac Code Example
E: Package 'oracle-java8-installer' has no installation candidate Code Example E: Package 'oracle-java8-installer' has no installation candidate Code Example
git fatal pack has bad object at offset Code Example git fatal pack has bad object at offset Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
15