Skip to content

Commit e2fe4c8

Browse files
committed
Added note about restoring the oplog.rs backup
1 parent 4fb0184 commit e2fe4c8

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

source/tutorial/change-oplog-size.txt

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,12 @@ The examples in this procedure use the following configuration:
4141
of ``/srv/mongodb``.
4242

4343
To change the size of the oplog for a replica set, use the following
44-
procedure for every member of the set that may become primary.
45-
44+
procedure for every member of the set that may become primary.
45+
4646
1. Shut down the :program:`mongod` instance and restart it in
47-
"standalone" mode running on a different port.
47+
"standalone" mode running on a different port.
4848

49-
.. note::
49+
.. note::
5050

5151
Shutting down the :term:`primary` member of the set will trigger
5252
a failover situation and another member in the replica set will
@@ -77,6 +77,10 @@ procedure for every member of the set that may become primary.
7777

7878
mongodump --db local --collection 'oplog.rs' --port 37017
7979

80+
.. note::
81+
82+
Restore the backup using the `mongorestore` command.
83+
8084
Connect to the instance using the :program:`mongo` shell:
8185

8286
.. code-block:: sh

0 commit comments

Comments
 (0)