Answers for "mongodump"

5

mongodb export entire database

// EXPORT
mongodump -d <database_name> -o <directory_backup>
// IMPORT
mongorestore -d <database_name> <directory_backup>
Posted by: Guest on May-26-2020
2

mongodump

mongodump -h <127.0.0.1>:<27017> -d <db> -u <user> -p <pw> -o ./
mongorestore ./
Posted by: Guest on May-24-2021
0

take db backup mongodb

mongodump --out=/data/backup/
Posted by: Guest on November-17-2020
0

take db backup mongodb

mongodump --host=mongodb1.example.net --port=3017 --username=user --password="pass" --out=/opt/backup/mongodump-2013-10-24
Posted by: Guest on November-17-2020

Browse Popular Code Answers by Language