[SERVER-281] mongofiles should have an option to specify input/output filenames Created: 04/Sep/09  Updated: 12/Jul/16  Resolved: 24/Sep/09

Status: Closed
Project: Core Server
Component/s: Tools
Affects Version/s: 1.0.0
Fix Version/s: 1.1.1

Type: New Feature Priority: Major - P3
Reporter: Jason Sachs Assignee: Michael Dirolf
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:

 Description   

There should be a way to decouple the input and output filenames (database vs. local filesystem source/destination) for mongofiles "get" and "put" commands.

I'd suggest "i filename" for PUT, and "-o filename" for GET, where filename is the source/destination filename (including path), and "" represents reading from STDIN or writing to STDOUT, respectively. Keep "--file" (or maybe "-f" for short) to refer to the filename stored in the database.



 Comments   
Comment by Michael Dirolf [ 24/Sep/09 ]

i've created a ticket for the stdin/stdout request. can track here:
http://jira.mongodb.org/browse/SERVER-311

Comment by Michael Dirolf [ 24/Sep/09 ]

add --local (-l) option to mongofiles to specify a different name to use on the local filesystem. the default is to use the same name as the positional argument after (put|get).

have not added support for reading to / writing from STDIN, mainly because it's a bit more work - if that is needed please open a second ticket with that request. i think the sytax "--local -" makes sense for that though, good suggestion.

Generated at Thu Feb 08 02:53:37 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.