Reference: https://www.w3resource.com/mongodb/mongodb-backup-restore.php "============ BACKUP ===========" Default Dumps all the databases into current directory D:\mongodb\bin>mongodump Backup a Database with mongodump specify the --host and --port D:\mongodb\bin>mongodump --host 19.110.108.46 --port 27017 Backup a Database with mongodump specify different output directory D:\mongodb\bin>mongodump --out /backup_data/backup/ Backup of a specific collection and a specific database using mongodump D:\mongodb\bin>mongodump --collection userdetails --db myinfo Create Backups from Non-Local mongod Instances mongodump --host [host name] --port 3017 --username [user] --password [pass] --out [backup folder path of local machine] for example, the path of the folder like : /backup_data/backup/ "============ RESTORE ===========" Default D:\mongodb\bin>mongorestore Restore Backups to Non-Local mongod Instances mongorestore --host [host name]:[port] [backup folder path of local machine] mongorestore --host [host name] --port 3017 --username [user] --password [password] [backup folder path of local machine] for example, the path of the folder like : /backup_data/backup/ Dump from atlas URI Anil-iMac:bin anil$ ./mongodump --uri "mongodb+srv://USER_NAME:PASSWORD@mongoatlaslitehrm.0cfre.gcp.mongodb.net/YOUR_DB_NAME?authSource=admin&replicaSet=atlas-m2x7xg-shard-0&readPreference=primary&appname=MongoDB%20Compass%20Community&ssl=true" --out /Users/anil/Development/Personal/mongodb-database-tools-macos-x86_64-100.1.1/bin/bkup