From 18a894ff17a4592abc94b85989bb1616a3cf600c Mon Sep 17 00:00:00 2001 From: jeff-allen-mongo Date: Wed, 4 Dec 2024 12:30:40 -0500 Subject: [PATCH 1/2] DOCSP-45728-compressors-option --- 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..eee9545 --- /dev/null +++ b/source/includes/fact-compressors-option-desc.rst @@ -0,0 +1,14 @@ +Specify the compression algorithm used between the MongoDB server and +|tool-binary|. You can specify 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 ---------- From 85c2fa6fcfca95f3312babb9e8105d873edf3c22 Mon Sep 17 00:00:00 2001 From: jeff-allen-mongo Date: Wed, 4 Dec 2024 14:19:15 -0500 Subject: [PATCH 2/2] review feedback --- source/includes/fact-compressors-option-desc.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/includes/fact-compressors-option-desc.rst b/source/includes/fact-compressors-option-desc.rst index eee9545..9deb8bf 100644 --- a/source/includes/fact-compressors-option-desc.rst +++ b/source/includes/fact-compressors-option-desc.rst @@ -1,5 +1,5 @@ -Specify the compression algorithm used between the MongoDB server and -|tool-binary|. You can specify one or more of these values for the +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``