Skip to content

Commit 2f63772

Browse files
author
Brandon Diamond
committed
DOCS-141 utility comments
1 parent be15a05 commit 2f63772

File tree

9 files changed

+71
-1
lines changed

9 files changed

+71
-1
lines changed

source/reference/bsondump.rst

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,12 @@ Options
4242
.. option:: --filter '<JSON>'
4343

4444
Limits the documents that :program:`bsondump` exports to only those
45-
documents that match the :term:`JSON document` specified as `'<JSON>'`. Be
45+
documents that match the :term:`JSON document` specified as ``'<JSON>'``. Be
4646
sure to include the document in single quotes to avoid a poor
4747
interaction with your shell.
4848

49+
TODO "poor interaction" may not be appropriate.
50+
4951
.. option:: --type <=json|=debug>
5052

5153
Changes the operation of :program:`bsondump` from outputting ":term:`JSON`" (the
@@ -55,13 +57,17 @@ Options
5557

5658
The final argument to :program:`bsondump` is a bson
5759

60+
TODO above is incomplete sentence. Fix?
61+
5862
Usage
5963
-----
6064

6165
The output of :program:`bsondump` returns on standard output. To
6266
create corresponding :term:`JSON` files, you will need to use the
6367
shell redirect. See the following command:
6468

69+
TODO not sure if "returns on standard output" makes sense. "The output of bsondump defaults to standard output."
70+
6571
.. code-block:: sh
6672
6773
bsondump collection.bson > collection.json

source/reference/mongodump.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,13 +67,17 @@ Options
6767
on the standard port. (i.e. ``27017``) You may also specify a port
6868
number using the :option:`--host <mongodump --host>` command.
6969

70+
TODO is the notation really --host <mongodump --host>, not sure about this
71+
7072
.. option:: --ipv6
7173

7274
Enables :term:`IPv6` support to allow :program:`mongodump` to
7375
connect to the MongoDB instance using IPv6
7476
connectivity. All MongoDB programs and processes, including
7577
:program:`mongodump`, disable IPv6 support by default.
7678

79+
TODO copypaste
80+
7781
.. option:: --username <username>, -u <username>
7882

7983
Specifies a username to authenticate to the MongoDB instance, if
@@ -87,6 +91,8 @@ Options
8791
in conjunction with the :option:`--username <mongodump --username>`
8892
option to supply a username.
8993

94+
TODO copypaste
95+
9096
.. option:: --dbpath <path>
9197

9298
Specifies the directory of the MongoDB data files. If used, the
@@ -166,6 +172,8 @@ Options
166172
be an inconsistent state as a result of an improper shutdown or
167173
:program:`mongod` crash.
168174

175+
TODO use this option *run a repair operation* (some wording errors)
176+
169177
.. option:: --forceTableScan
170178

171179
Forces :program:`mongodump` to scan the data store directly:

source/reference/mongoexport.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,8 @@ Options
6666
You can always connect directly to a single MongoDB instance by
6767
specifying the host and port number directly.
6868

69+
TODO copypaste
70+
6971
.. option:: --port <port>
7072

7173
Specifies the port number, if the MongoDB instance is not running on
@@ -79,6 +81,8 @@ Options
7981
and processes, including :program:`mongoexport`, disable IPv6
8082
support by default.
8183

84+
TODO copypaste
85+
8286
.. option:: --username <username>, -u <username>
8387

8488
Specifies a username to authenticate to the MongoDB instance, if your

source/reference/mongofiles.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ Commands
4646
returned items to files that begin with that string of
4747
characters.
4848

49+
TODO double space after characters
50+
4951
.. option:: search <string>
5052

5153
Lists the files in the GridFS store with names that match any
@@ -118,6 +120,8 @@ Options
118120
You can always connect directly to a single MongoDB instance by
119121
specifying the host and port number directly.
120122

123+
TODO "from which you want to *export* data" doesn't quite make sense in context
124+
121125
.. option:: --port <port>
122126

123127
Specifies the port number, if the MongoDB instance is not running on
@@ -131,6 +135,8 @@ Options
131135
and processes, including :program:`mongofiles`, disable IPv6 support by
132136
default.
133137

138+
TODO copypaste
139+
134140
.. option:: --username <username>, -u <username>
135141

136142
Specifies a username to authenticate to the MongoDB instance, if your

source/reference/mongoimport.rst

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,8 @@ Options
8282
and processes, including :program:`mongoimport`, disable IPv6
8383
support by default.
8484

85+
TODO copypaste
86+
8587
.. option:: --username <username>, -u <username>
8688

8789
Specifies a username to authenticate to the MongoDB instance, if your
@@ -94,6 +96,8 @@ Options
9496
in conjunction with the :option:`mongoimport --username` option to
9597
supply a username.
9698

99+
TODO copypaste
100+
97101
.. option:: --dbpath <path>
98102

99103
Specifies the directory of the MongoDB data files. If used, the
@@ -117,6 +121,8 @@ Options
117121

118122
Enables journaling for all :program:`mongoimport` operations.
119123

124+
TODO this description seems less detailed than the other --journal descriptions; maybe should describe in more depth.
125+
120126
.. option:: --db <db>, -d <db>
121127

122128
Use the :option:`--db` option to specify a database for
@@ -136,13 +142,17 @@ Options
136142
restore data into a MongoDB instance that already has data, or to
137143
restore only some data in the specified imported data set.
138144

145+
TODO this should be mongoimport, not mongorestore
146+
139147
.. option:: --fields <field1[,filed2]>, -f <field1[,filed2]>
140148

141149
Specify a field or number fields to *import* from the data
142150
export. All other fields present in the export will be *excluded*
143151
during importation. Comma separate a list of fields to limit the
144152
fields imported.
145153

154+
TODO "import form the data export" is a little confusing
155+
146156
.. option:: --fieldFile <filename>
147157

148158
As an alternative to ":option:`mongoimport --fields`" the
@@ -261,3 +271,5 @@ instance running on the host ``mongodb1.example.net``" over port
261271
.. code-block:: sh
262272
263273
mongoexport --host mongodb1.example.net --port 37017 --username user --password pass --collection contacts --db marketing --file /opt/backups/mdb1-examplenet.json
274+
275+
TODO these are all mongoexport instead of mongoimport

source/reference/mongorestore.rst

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@ Options
5555
You can always connect directly to a single MongoDB instance by
5656
specifying the host and port number directly.
5757

58+
TODO first paragraph, second sentence: "ruining" should be "running"
59+
5860
.. option:: --port <port>
5961

6062
Specifies the port number, if the MongoDB instance is not running
@@ -81,6 +83,8 @@ Options
8183
in conjunction with the :option:`mongorestore --username` option to
8284
supply a username.
8385

86+
TODO leave out password to be prompted
87+
8488
.. option:: --dbpath <path>
8589

8690
Specifies the directory of the MongoDB data files. If used, the
@@ -135,6 +139,8 @@ Options
135139
``'<JSON>'``. Be sure to include the document in single quotes to
136140
avoid a poor interaction with your shell.
137141

142+
TODO poor interaction with shell again; not sure how you feel about these
143+
138144
.. option:: --drop
139145

140146
Modifies the restoration procedure to drop every collection from
@@ -172,6 +178,8 @@ In the following command restores the collection named
172178
on the localhost interface on port ``27017`` the dump located in the
173179
"``dump/``" directory.
174180

181+
TODO the above is clumsy and hard to follow
182+
175183
.. code-block:: sh
176184
177185
mongorestore --collection collection --database test
@@ -182,6 +190,8 @@ in the ``/srv/mongodb`` on the local machine. This requires there are
182190
no active :program:`mongod` instances attached to ``/srv/mongodb``
183191
data directory.
184192

193+
TODO "This requires *that* there are..." - is this better?
194+
185195
.. code-block:: sh
186196
187197
mongorestore --dbpath /srv/mongodb
@@ -192,6 +202,8 @@ running on port "``37017``" on the host "``mongodb1.example.net`` and
192202
authenticating using the username "``user``" and the password
193203
"``pass``", as follows:
194204

205+
TODO is "authenticating" the right tense? goodness, my grammar is rusty
206+
195207
.. code-block:: sh
196208
197209
mongorestore --host mongodb1.example.net --port 37017 --username user --password pass /opt/backup/mongodumpm-2011-10-24

source/reference/mongosniff.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ MongoDB-specific analogue of ``tcpdump`` for TCP/IP network
1717
traffic. Typically, :program:`mongosniff` is most frequently used in drier
1818
development.
1919

20+
TODO s/drier/driver/
21+
2022
.. note::
2123

2224
:program:`mongosniff` requires "libcap" and is only available for

source/reference/mongostat.rst

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ on the local host interface on TCP port 27017, but
3737
:program:`mongostat` can connect to any accessible remote MongoDB
3838
process.
3939

40+
TODO "but mongostat [can also] ... [as well]"?
41+
4042
Options
4143
-------
4244

@@ -78,6 +80,8 @@ Options
7880
You can always connect directly to a single MongoDB instance by
7981
specifying the host and port number directly.
8082

83+
TODO s/ruining/running
84+
8185
.. option:: --port <port>
8286

8387
Specifies the port number, if the MongoDB instance is not running on
@@ -91,6 +95,8 @@ Options
9195
and processes, including :program:`mongostat`, disable IPv6 support
9296
by default.
9397

98+
TODO tentative copypaste
99+
94100
.. option:: --username <username>, -u <username>
95101

96102
Specifies a username to authenticate to the MongoDB instance, if your
@@ -103,6 +109,8 @@ Options
103109
in conjunction with the :option:`mongostat --username` option to
104110
supply a username.
105111

112+
TODO copypaste
113+
106114
.. option:: --noheaders
107115

108116
Disables the output of column or field names.
@@ -322,6 +330,8 @@ group of machines. If a :program:`mongos` process connected to a
322330
machine, you can use the following form to return statistics from all
323331
members of the cluster:
324332

333+
TODO "use the --etc will help" - looks like s/use/using/
334+
325335
.. code-block:: sh
326336
327337
mongostat --discover

source/reference/mongotop.rst

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ MongoDB instance spends reading and writing data. :program:`mongotop`
1616
provides statistics on the per-collection level. In default operation,
1717
:program:`mongotop` returns values every second.
1818

19+
TODO "in default operation" = "by default", maybe less confusing
20+
1921
.. seealso::
2022

2123
For more information about monitoring MongoDB, see
@@ -69,6 +71,8 @@ Options
6971
of at least one connected set member, connect to primary node of
7072
that set. this option would resemble:
7173

74+
TODO is "setname" a well-defined mongodb term? I usually write "replica set name" which is pretty clumsy sounding
75+
7276
.. code-block:: sh
7377
7478
--host repl0 mongo0.example.net,mongo0.example.net,27018,mongo1.example.net,mongo2.example.net
@@ -88,6 +92,8 @@ Options
8892
MongoDB instance using IPv6 connectivity. :program:`mongotop` and
8993
other MongoDB programs disable IPv6 support by default.
9094

95+
TODO I'm not an ipv6 whiz by any means -- but is "connectivity" the right word? (seems like too much connect* in one sentence)
96+
9197
.. option:: --username <username>, -u <username>
9298

9399
Specifies a username to authenticate to the MongoDB instance, if
@@ -101,6 +107,8 @@ Options
101107
in conjunction with the :option:`--username <mongotop --username>`
102108
option to supply a username.
103109

110+
TODO I believe that mongotools will prompt for a password if flag is used without a value
111+
104112
.. option:: <sleeptime>
105113

106114
The final argument the length of time, in seconds, that
@@ -124,6 +132,8 @@ Fields
124132
shell to generate activity so that an specific namespace appears on
125133
the page.
126134

135+
TODO ", and includes" should this be ", which includes"?
136+
127137
.. data:: total
128138

129139
Provides the total amount of time that this :program:`mongod` spent

0 commit comments

Comments
 (0)