mongodb export tool code example Example: mongodb export mongodump -h <127.0.0.1>:<27017> -d <db> -u <user> -p <pw> -o ./ mongorestore ./