[DOCS-13934] [TOOLS] Support list of files for put and get subcommands in mongofiles Created: 19/Oct/20  Updated: 30/Oct/23  Due: 23/Oct/20  Resolved: 30/Nov/20

Status: Closed
Project: Documentation
Component/s: tools
Affects Version/s: None
Fix Version/s: Server_Docs_20231030

Type: Task Priority: Critical - P2
Reporter: Anonymous Assignee: Andrew Feierabend (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Documented
documents TOOLS-2667 Support list of files for put and get... Closed
Participants:
Days since reply: 3 years, 10 weeks, 2 days ago
Epic Link: DOCSP-11348
Story Points: 3

 Description   

Description

Specify in documentation as needed that put and get subcommands now support lists of files

Engineering Description
This PR implements logic to support a list of supporting arguments, i.e. file names, for mongofiles put and mongofiles get. The intended behavior is as follows:

The following (1) should put the specified files in the remote GridFS filesystem:

mongofiles put first.bson second.bson third.bson

The following (2) should put all files of the form *.bson in the current directory or any of its subdirectories:

mongofiles put */.bson

mongofiles should not evaluate the glob expression logic – the underlying shell should evaluate the glob expression and call mongofiles with a command of the form specified in (1).

Furthermore, the following command should get the specified files from the remote GridFS filesystem:

mongofiles get first.bson second.bson third.bson

The glob interface is not available for `mongofiles ... get` – that should be made available in TOOLS-2668.

Scope of changes

Impact to Other Docs

MVP (Work and Date)

Resources (Scope or Design Docs, Invision, etc.)



 Comments   
Comment by Githook User [ 30/Nov/20 ]

Author:

{'name': 'Andrew Feierabend', 'email': 'andrew.feierabend@mongodb.com', 'username': 'andf-mongodb'}

Message: DOCS-13934, DOCS-13935 mongofiles get put support multiple and regex
Branch: master
https://github.com/mongodb/docs-commandline-tools/commit/3a2790f8611205b7b31f4c8608e71ae78e9828c1

Generated at Thu Feb 08 08:09:05 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.