Answers for "how to restore mongodb in windows"

Go
0

mongodb dump and restore

mongodump --db ${DB_NAME} --gzip -o ${BACKUP_FILE_GZ}

mongorestore --gzip --db "${DB_NAME_RESTORE}" ${BACKUP_FILE_GZ}/${DB_NAME}
Posted by: Guest on April-15-2021
0

restore mongdbd

mongoimport --db <database-name> --port <database-port> --collection <collection-name> --type csv --headerline --file /path/to/myfile.csv
Posted by: Guest on April-09-2021
0

restore mongdbd

mongorestore --noIndexRestore --host <database-host> -d <database-name> --port <database-port> foldername
Posted by: Guest on April-09-2021

Code answers related to "how to restore mongodb in windows"

Browse Popular Code Answers by Language