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