MongoDB Database Backup Methods
A list of data backup methods, including advantages and disadvantages of each method, for backing up the data in the Event Repository. Refer to your MongoDB product documentation for detailed information about MongoDB backup methods.
Although the MongoDB replica set is very good at ensuring high data availability and data backups against even multiple server failures, periodic backing-up of the entire database is an additional guard against catastrophe where an entire replica set is lost. The following is a list of data backup methods which includes advantages and disadvantages of each method. The Ops Manager is especially feature-rich and flexible, allowing specific point-in-time recovery, automation, and direct MongoDB support.
A backup of the Event Repository would include the entire MongoDB database (the MtxEventDatabase and the MtxGlDatabase if it is present) or all of the files within the dbPath directory if the backup is at the file level.
Method | Description | Pros | Cons | Comment |
---|---|---|---|---|
Back Up and Restore with MongoDB Tools | Create backups and restore data using the utilities provided with MongoDB, namely mongodump and mongorestore. |
|
|
Only suitable for very small databases. |
Manually copying Underlying Data Files | Manually creating a copy of all the database files. | No tools or special setup required. |
|
Only suitable for small database and files on SSDs. |
Filesystem Snapshots | System configured with data residing on a Logical Volume Manager (LVM) volume can take advantage of the LVM snapshot capability. |
|
|
With some planning and careful orchestration,
it is the most promising method of backing-up large databases without system
down time and without additional cost.
A snapshot volume with large amount of data should be compressed before being copied elsewhere for safekeeping, and be released when done. |
Ops Manager | A comprehensive maintenance tool that provides on-premise monitoring, backup, and upgrade solutions. |
|
Only available with MongoDB Enterprise Advanced license. | Most comprehensive, integrated, and flexible solution. |
Cloud Backup through MongoDB Cloud Manager | Ops Manager outsourced, maintained by MongoDB. |
|
High cost (subscription fee) | Easiest, probably most reliable and flexible solution. |
Replication | Add more data-bearing replica set members. |
|
High cost (hardware and licensing) | Each additional replica set member adds to higher availability and additional guards against multiple server failure and data loss. |