Uploaded image for project: 'MongoDB CLI Tools'
  1. MongoDB CLI Tools
  2. TOOLS-1619

Mongodump: Support "--limit" option

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Minor - P4
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: mongodump
    • Labels:
      None
    • Environment:
      Linux, Mac OS X
    • Documentation Changes:
      Needed
    • Documentation Changes Summary:
      Hide
      This would require including documentation for the limit option, which limits the number of records outputted for a given collection on this page (https://docs.mongodb.com/manual/reference/program/mongodump/#cmdoption-query).
      Show
      This would require including documentation for the limit option, which limits the number of records outputted for a given collection on this page ( https://docs.mongodb.com/manual/reference/program/mongodump/#cmdoption-query ).

      Description

      Similar to mongoexport's limit option, support a way to limit records outputted by the mongodump tool for a given collection independent of the {--query} flag.

      Usage would look like:

      mongodump -d <database> -c <collection> --limit <positive integer>
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              gabriel.russell Gabriel Russell
              Reporter:
              stephenmalina Stephen Malina
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: