Skip to content

Commit ed399ad

Browse files
committed
DOCS-137. 2nd checkpoint on backups.rst
1 parent 867ba6e commit ed399ad

File tree

1 file changed

+14
-7
lines changed

1 file changed

+14
-7
lines changed

source/administration/backups.rst

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -418,8 +418,8 @@ Database Export with mongodump
418418

419419
The :program:`mongodump` utility performs a live backup the data, or
420420
can work against an inactive set of database
421-
files. :program:`mongodump` utility can create a dump for an entire
422-
server/database/collection (or part of a collection with a query,)
421+
files. The :program:`mongodump` utility can create a dump for an entire
422+
server/database/collection (or part of a collection using of query,)
423423
even when the database is running and active. If you run
424424
:program:`mongodump` without any arguments the command will connect to
425425
the local database instance (e.g. ``127.0.0.1`` or ``localhost``) and
@@ -441,6 +441,8 @@ database named "``test``". :program:`mongodump` provides the
441441
operation to use the operation log to take a point-in-time snapshot of
442442
the database.
443443

444+
TODO: We need to explain how this works. Can help you on this tmrw.
445+
444446
If your MongoDB instance is not running, you can use the
445447
":option:`--dbpath <mongodump --dbpath>`" option to specify the
446448
location to your MongoDB instance's database files. :program:`mongodump`
@@ -469,15 +471,15 @@ and password credentials to specify database authentication.
469471
Database Import with mongorestore
470472
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
471473

472-
The :program:`mongorestore` restores a binary backup created by the
473-
:program:`mongodump` utility. Consider the following example command:
474+
The :program:`mongorestore` utility restores a binary backup created by
475+
:program:`mongodump`. Consider the following example command:
474476

475477
.. code-block:: sh
476478
477479
mongorestore dump-2011-10-25/
478480
479481
Here, :program:`mongorestore` imports the database backup located in
480-
the ``dump-2011-10-25`` directory to the :option:``mongod` instance
482+
the ``dump-2011-10-25`` directory to the :option:`mongod` instance
481483
running on the localhost interface. By default, :program:`mongorestore`
482484
will look for a database dump in the "``dump/``" directory and restore
483485
that. If you wish to restore to a non-default host, the
@@ -494,7 +496,7 @@ username and password credentials as above.
494496

495497
If you created your database dump using the :option:`--oplog
496498
<mongodump --oplog>` option to ensure a point-in-time snapshot, call
497-
:program:`mongorestore` with the ":option:` --oplogReplay <mongorestore
499+
:program:`mongorestore` with the ":option:`--oplogReplay <mongorestore
498500
--oplogReplay>`" option as in the following example:
499501

500502
.. code-block:: sh
@@ -513,12 +515,15 @@ following example:
513515
514516
mongorestore --filter '{"field": 1}'
515517
516-
Here, :program:`mognorestore` only adds documents to the database from
518+
Here, :program:`mongorestore` only adds documents to the database from
517519
the dump located in the "``dump/``" folder *if* the documents have a
518520
field name "``field``" that holds a value of "``1``". Enclose the
519521
filter in single quotes (e.g. "``'``") to prevent the filter from
520522
interacting with your shell environment.
521523

524+
TODO: You already referenced --dbpath option above, but this actually
525+
seems more fleshed out..
526+
522527
If your MongoDB instance is not running, you can use the
523528
":option:`mongorestore --dbpath`" option to specify the location to
524529
your MongoDB instance's database files. :program:`mongorestore` inserts
@@ -532,6 +537,8 @@ configuration. Consider the following example:
532537
533538
mognorestore --dbpath /srv/mongodb
534539
540+
TODO: third ref to --dbpath
541+
535542
If your MongoDB instance is not running, you can use the
536543
":option:`--dbpath <mongorestore --dbpath>`" option to specify the
537544
location to your MongoDB instance's database files. Consider using the

0 commit comments

Comments
 (0)