Diferencia entre revisiones de «Docker Export Import MongoDB»
De enunpimpam
(Página creada con «Categoría: Docker Dentro del contenedor ==Export== mongoexport --db <nombreDB> --collection <nombre_de_la_colección> --out ruta/del/archivo_exportado.json ==Impo…») |
(Sin diferencias)
|
Revisión actual del 15:24 25 feb 2024
Dentro del contenedor
Export
mongoexport --db <nombreDB> --collection <nombre_de_la_colección> --out ruta/del/archivo_exportado.json
Import
mongoimport --host localhost --port 27017 --username myuser --password mypassword --authenticationDatabase admin --db mydatabase --collection mycollection --file data.json