MongoDB Backup Options
6K views
Oct 24, 2024
MongoDB Backup Options
View Video Transcript
0:00
In this video we are discussing MongoDB backup options
0:05
So there are multiple different options with the help of which the backup can be taken
0:09
We know that all the data are important and MongoDB is to store and hold huge amount
0:15
of data. To increase the availability, accessibility, we should have the backup of our data
0:22
So that in future if there is any kind of disasters are taking place from the backup, we can
0:28
restore our data. So, what are the different methods we are going to discuss here
0:33
So these, there are several backup methods are present and these are MMS, that is a MongoDB
0:41
management service. So this is one automated service. And next one is a copying files
0:47
So here in this case, we'll be doing the copy of our files, but later proper journaling
0:52
will be required for restoring them. And another one is a very famous option that is a Mongo dump So backup methods we are having this MMS Mongo management service copying data files and the last option we having this one
1:07
as Mongo dump. We shall be discussing all of them but one by one. So, at first we are going
1:13
to discuss MMS backup method. The MMS is the MongoDB management service and this service
1:21
supports the backup and restore functionality of MongoDB. This MMS is an automated feature
1:28
and it automatically creates a backup, the replica sets and starts systems from the MongoDB
1:35
cluster. So this is one automated feature which is available and coming with the MongoDB system
1:41
So it uses the restore options to get back and restore at any point from last 24 hours
1:49
So we can do the restoring from any point of the last 24 hours and that is our MMS backup method Next one is data file copying backup method So we can also create backup of the database contents by copying the files from the MongoDB system So we will be taking the copy
2:07
of the files from the MongoDB system but while restoring I require the proper journaling
2:13
So we need the correct journaling to restore files at the in the correct point
2:19
Next one is that we should stop all the writing processes into the MongoDB before performing the
2:25
copy operation. So, before performing the copying operation, all the right operations are to be suspended
2:32
So, if the snapshots are supported, we can use them to make backup at exact moment in time
2:39
So, that is our data file copying backup method. Let us go for the last option, that is the Mongo dump to backup
2:48
The Mongo dump creates high fidelity vision files and by reading the MongoDB database
2:54
So Bison means we are having the binary JSON So that is a binary JavaScript object notation It is known as Bisson So it is the MongoDB creates a high fidelity That means we can trust on that And this
3:08
Bison files by reading the MongoDB database. The Mongo dump and the Mongo restore. So two
3:14
commands are there. One is the Mongo dump and the one is the Mongo restore. And processes can
3:19
operate against the MongoD process and it can access underlying MongoDB files directly
3:25
So, Mongo dump means you are taking the backup and Mongo restore means from the backup
3:30
you are again restoring the MongoDB files. The Mongo dump does not capture the contents of the local databases
3:38
It deals with the global database only. So, Mongo dump can work also and then the MongoD server is not running
3:46
When the Mongo server is not running, then also the Mongo dump can work on the system
3:52
So here we have discussed the three different backup methods that is a MAM
3:55
MMS, copying files and Mongo dump. Thanks for watching this video
#Programming
#Software