Skip to content

Commit

Permalink
DOCSP-45728-compressors-option (#179)
Browse files Browse the repository at this point in the history
* DOCSP-45728-compressors-option

* review feedback
  • Loading branch information
jeff-allen-mongo authored Dec 4, 2024
1 parent 3d52400 commit 6f05dfe
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 0 deletions.
14 changes: 14 additions & 0 deletions source/includes/fact-compressors-option-desc.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
Specifies the compression algorithm used between the MongoDB server and
|tool-binary|. You can use one or more of these values for the
``--compressors`` option:

- ``snappy``
- ``zlib``
- ``zstd``

If you specify multiple compression algorithms, |tool-binary| uses the
first one in the list supported by your MongoDB deployment.

For more information on compressors, see the `Go driver network
compression documentation
<https://www.mongodb.com/docs/drivers/go/current/fundamentals/connections/network-compression/>`__.
4 changes: 4 additions & 0 deletions source/mongodump.txt
Original file line number Diff line number Diff line change
Expand Up @@ -803,6 +803,10 @@ Options
view's metadata file in a ``mongorestore`` operation, the view
is recreated.

.. option:: --compressors=<string>

.. include:: /includes/fact-compressors-option-desc.rst

Learn More
----------

Expand Down
4 changes: 4 additions & 0 deletions source/mongorestore.txt
Original file line number Diff line number Diff line change
Expand Up @@ -869,6 +869,10 @@ Options

- You cannot use the ``--archive`` option with the ``--dir`` option.

.. option:: --compressors=<string>

.. include:: /includes/fact-compressors-option-desc.rst


Learn More
----------
Expand Down

0 comments on commit 6f05dfe

Please sign in to comment.