Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-7382

Error in command shown on Backup a Sharded Cluster with Filesystem Snapshots page

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • Server_Docs_20231030
    • None
    • manual
    • None

    Description

      In the steps to backup a config server '(Backup a Sharded Cluster with Filesystem Snapshots)' in the section entitled 'If the sharded cluster uses CSRS' it says to run the following command:

      db.changelog.find({what:/^moveChunk/}).sort({time:-1}).next().what"
      

      This results in a syntax error, due to the spurious '.what"' at the end of the command.

      This command should end at the '.next()' (noting too that this command will fail if no chunk migrations have taken place yet, e.g. for a new cluster)

      GitHub source is here: https://github.com/mongodb/docs/blob/master/source/includes/steps-backup-sharded-cluster-with-snapshots.yaml#L96

      Attachments

        Activity

          People

            ravind.kumar Ravind Kumar (Inactive)
            ronan.bohan@mongodb.com Ronan Bohan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              7 years, 49 weeks ago