search

Home  >  Q&A  >  body text

mongodb hot backup and cold backup

Excuse me, mongodb hot backup refers to the operation implemented using mongodump, etc.? What about cold backup?

曾经蜡笔没有小新曾经蜡笔没有小新2741 days ago771

reply all(1)I'll reply

  • 淡淡烟草味

    淡淡烟草味2017-05-17 10:04:47

    Easy way:

    1. Close the database, or lock the database as follows:

    db.fsyncLock();

    2. Use the cp command in the operating system to copy the DB file/log file, etc. in the backup data directory

    For various options/detailed steps, please refer to the official website’s documentation:

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

    For reference.

    Love MongoDB! Have fun!

    reply
    0
  • Cancelreply