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

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

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • Server_Docs_20231030
    • Affects Version/s: None
    • Component/s: manual
    • Labels:
      None

      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

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

              Created:
              Updated:
              Resolved:
              8 years, 8 weeks, 1 day ago