Hi KamilPniak-3382,
To create a backup of your database in MongoDB, you should use the mongodump command. This command will dump all your datadase data on your server into the dump directory. Then you can use whatever traditional backup systems you like to backup that directory.
The basic syntax of mongodump command is as follows −
mongodump
For example, start your mongod server. Assuming that your mongod server is running on the localhost and port 27017, open a command prompt and go to the bin directory of your mongodb instance and type the command mongodump
The command will connect to the server running at 127.0.0.1 and port 27017 and back all data of the server to directory /bin/dump/.
To restore backup data MongoDB's mongorestore command is used. This command restores all of the data from the backup directory.
I hope this answers your question.
--------------------------------------------------------------------------------------------------------------------------------------------
--If the reply is helpful, please Upvote and Accept as answer--