Mongodb Hot and Cold Backup

  mongodb, question

I would like to ask mongodb hot backup refers to: Do you use mongodump and other operations? What about cold backups?

Simple way:

1. Shut down the database, or lock the database as follows:

db.fsyncLock();

2. copy DB file/log file etc. in the backup data directory with cp instruction in the operating system.

For a variety of options/detailed procedures, please refer to the documentation on the official website:

https://docs.mongodb.com/manu …

For reference.

Love MongoDB! Have fun!