From 6f05dfec2320a2f617c27b283edd57c88864f178 Mon Sep 17 00:00:00 2001 From: Jeff Allen Date: Wed, 4 Dec 2024 16:02:22 -0500 Subject: [PATCH] DOCSP-45728-compressors-option (#179) * DOCSP-45728-compressors-option * review feedback --- source/includes/fact-compressors-option-desc.rst | 14 ++++++++++++++ source/mongodump.txt | 4 ++++ source/mongorestore.txt | 4 ++++ 3 files changed, 22 insertions(+) create mode 100644 source/includes/fact-compressors-option-desc.rst diff --git a/source/includes/fact-compressors-option-desc.rst b/source/includes/fact-compressors-option-desc.rst new file mode 100644 index 0000000..9deb8bf --- /dev/null +++ b/source/includes/fact-compressors-option-desc.rst @@ -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 +`__. diff --git a/source/mongodump.txt b/source/mongodump.txt index 9bed2e3..2c8bf15 100644 --- a/source/mongodump.txt +++ b/source/mongodump.txt @@ -803,6 +803,10 @@ Options view's metadata file in a ``mongorestore`` operation, the view is recreated. +.. option:: --compressors= + + .. include:: /includes/fact-compressors-option-desc.rst + Learn More ---------- diff --git a/source/mongorestore.txt b/source/mongorestore.txt index cff2f98..d0546b0 100644 --- a/source/mongorestore.txt +++ b/source/mongorestore.txt @@ -869,6 +869,10 @@ Options - You cannot use the ``--archive`` option with the ``--dir`` option. +.. option:: --compressors= + + .. include:: /includes/fact-compressors-option-desc.rst + Learn More ----------