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

cloneDatabase from the shell does not allow collsToIgnore parameter

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Minor - P4 Minor - P4
    • None
    • 2.8.0-rc0
    • Shell

    Description

      Problem

      The js helper in the shell for cloneDatabase is as follows

       
      > db.cloneDatabase
      function (from) {
          assert( isString(from) && from.length );
          return this._dbCommand( { clone: from } );
      }
      

      However, this does not permit the collsToIgnore parameter to be passed. This can be done via the runCommand (see below)

      Workaround

      > db.runCommand( {clone: "54.191.70.12:27017", collsToIgnore: ["test.boo"]} )
      

      Attachments

        Activity

          People

            backlog-server-platform DO NOT USE - Backlog - Platform Team
            alvin Alvin Richards (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: