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

mongorestore has no way to accept input from stdin

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 2.7.3
    • 2.0.1
    • Tools
    • None
    • ALL

    Description

      mongodump can output to stdout, but mongorestore appears to have no way to accept input from stdin. This makes it very difficult to pipe the output from mongodump to mongorestore to copy a collection from one server to another without writing the entire collection to a temporary file (potentially hundreds of GB).

      Attachments

        Activity

          People

            Votes:
            33 Vote for this issue
            Watchers:
            29 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: