Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-34268

The Backup Requirement during Compact Execution-Confirmation

      Dear Team,
      We are using the compact command inorder to reduce the storage space of data and index.
      We need your Support to confirm that 'data' folder backup creation is really required or not?

      Below are the environment details

      1. mongodb Journals are enabled by default
      2. Mongod server version: db version v3.4.0
      3. OS: Windows 7, architecture: "x86", version: "6.1" , platform: "Java/OracleCorporation/1.8.0_162-b12"

      As per the MongoDB documentation for Compact command, it is recommended to create a backup before performing Compact command. (Ref: https://docs.mongodb.com/manual/reference/command/compact/#dbcmd.compact)

      However as per the MongoDB documentation, if we terminate the Compact command in between AND if journaling is enabled, it will be restored without any issue and we may have to rebuild the indexes (Ref: https://docs.mongodb.com/manual/reference/command/compact/#operation-termination)

      To ensure that 'data' backup is not required , we have terminated the compact Operation while it is executing on the database collections with dataSize=68.8GiB, and observed that the both 'data' and 'index' remains valid and usable.

      Could you please confirm whether backup is really necessary even if Journaling is enabled or not, Thank you.

      Thanks & Regards
      Sandeep KS

            Assignee:
            kelsey.schubert@mongodb.com Kelsey Schubert
            Reporter:
            Urs Sandeep [X]
            Votes:
            1 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: