Skip to content

DOCSP-45728-compressors-option #179

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Dec 4, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
@@ -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
----------

4 changes: 4 additions & 0 deletions source/mongorestore.txt
Original file line number Diff line number Diff line change
@@ -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
----------