When using mongodump
there's two options listed in the docs regarding compression: gzip
and archive
.
What's the difference between the two? Can / Do I want to use them in conjunction or are they mutually exclusive?
Using the --archive=filname
option will output a single file instead of creating a directory structure with each each collection in a separate file.
The --gzip
option will make the output file(s) be compressed with gzip.
They can be used separately or together.