Answers for "mongodb restore database command"

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

mongo restore collections

mongorestore --port 27017 --db restoredTest /mydata/restoredata/test --drop
Posted by: Guest on September-09-2020

Code answers related to "mongodb restore database command"

Browse Popular Code Answers by Language