restore mongdbd code example
Example 1: restore mongdbd
mongorestore --noIndexRestore --host <database-host> -d <database-name> --port <database-port> foldername
Example 2: restore mongdbd
mongoimport --db <database-name> --port <database-port> --collection <collection-name> --file input.json
Example 3: restore mongdbd
mongorestore --host <database-host> -d <database-name> --port <database-port> foldername
Example 4: restore mongdbd
mongodump --host <database-host> -d <database-name> --port <database-port> --out directory
Example 5: restore mongdbd
mongoimport --db <database-name> --port <database-port> --collection <collection-name> --type csv --headerline --file /path/to/myfile.csv
Example 6: restore mongdbd
2) mongorestore --db databasename --verbose \path\dump\<dumpfolder>
Example 7: restore mongdbd
1) mongorestore --verbose \path\dump
Example 8: restore mongdbd
mongodump --collection myCollection --db test
Example 9: restore mongdbd
mongodump --db databasename