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 ----------