DEV Community

Discussion on: 🐳 mongodump and mongorestore with Docker

Collapse
 
rajmaharjan profile image
Raj Maharjan

Hi, thanks for writing, useful for quick note.
Here, mongorestore authenticated only worked with -i option:
docker exec -i <mongodb container> sh -c 'mongorestore -d <database> -u <user> -p <password> --archive' < db.dump

Collapse
 
mkubdev profile image
Maxime Kubik

Thanks Raj, i will update the post!