cloneDatabase from the shell does not allow collsToIgnore parameter

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Done
    • Priority: Minor - P4
    • None
    • Affects Version/s: 2.8.0-rc0
    • Component/s: Shell
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      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"]} )
      

            Assignee:
            DO NOT USE - Backlog - Platform Team
            Reporter:
            Alvin Richards (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: