![robo 3t backup database robo 3t backup database](https://res.cloudinary.com/practicaldev/image/fetch/s--8WF6ZXmV--/c_imagga_scale,f_auto,fl_progressive,h_500,q_auto,w_1000/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/xhnflxxk31wy6d8j0bez.png)
Here is the output D:\mongodb\bin>mongodump -host mypc-PC -port 27017 D:\mongodb\bin>mongodump -host mypc-PC -port 27017 Here in the example below the host is mypc-PC and port is the default port 27017. T16:12:38.413+0530 DATABASE: admin to dump\adminīackup a Database with mongodump specify the -host and -port Here is the output D:\mongodb\bin>mongodump Here our path is D:\mongodb\bin and you have to execute the command from here. To take the backup you have to enter the bin directory into the mongodb folder on your machine.
![robo 3t backup database robo 3t backup database](https://seniorproject.sit.kmutt.ac.th/screenshot/screenshot2.IT58-SO86.png)
Here is the command to backup data from a mongod or mongos instance running on the same machine and on the default port of 27017. localhost) on port 27017 and creates a database backup named dump/ in the current directory. When mongodump only runs without any arguments, the command connects to the MongoDB instance on the local system (e.g. The backup utility of MongoDB can create a backup for an entire server, database or collection, or you can use a query to backup for a part of a collection. Here, in this article, we will describe the process for creating backups and restoring data using the utilities provided with MongoDB MongoDB Backup On that vital moment, you can keep safe by restoring your data if you have a backup of your valuable data. This utility is important because your valuable data can be removed or crashed or corrupted from your server, your local machine by accidentally or by any mistake, whatever it may be. The Backup and Restore in MongoDB is an important part to handle a database.