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).
- is duplicated by
-
TOOLS-133 Add option to mongodump, mongorestore to backup, recover from a predefined network device or location (aka named pipe)
- Closed
-
SERVER-3111 Allow mongorestore to read from stdin
- Closed
- is related to
-
TOOLS-23 mongodump to allow compression or dump everything to stdout
- Closed
- links to