May 16, 2022

MongoDB mongodump utility

mongodump commands MongoDB


mongodump -- export in binary format
mongodump --help
mongodump --version

mongodump
mongodump --db myDb # all databases, except local, will be exported

mongodump --host ec2-***.amazonaws.com --username admin --password secret --authenticationDatabase admin --db myDB --collection dept --out /tmp/

mongodump --host 172.16.33.44 --username admin --password secret --authenticationDatabase admin --db myDB --collection dept --archive=/tmp/dump/dump.gz --gzip


Related MongoDB Articles: mongorestore utility in MongoDB

No comments:

Post a Comment