After you have the permission to run mongoshell, the next step is to package and download its entire web directory. Here, of course, the necessary tool WinRAR is indispensable.
Winrarwill be installed at some sites. If not, upload rar.exe. The detailed RAR commands can be found in the "rar.txt" file in the WinRAR installation directory. Maybe you have no patience to read them. Here we will introduce simple commands to you: A packaging example is provided, which is helpful to you.
For example, pack all the Dongxi files under the c: \ temp \ directory as web.rar and put it under the C: \ temp \ directory for download.
The bat file is as follows:
CD \
CD Program Files \ WinRAR \
Rar.exe a-k-r-s-M3 c: \ temp \ temp.rar c: \ temp \
Parameter description:
A. Add the file to the compressed file.
-K: Lock the compressed file
-S Generates solid archives to increase the compression ratio.
-R includes subdirectories
-M1 sets the compression ratio.
-When you add M0 storage to a compressed file, the file is not compressed.
-M1: the fastest way to use (low compression)
-M2: Fast Compression
-Standard (default) compression mode for M3
-M4: better compression mode (better compression, but slow)
-M5 is best to use the maximum compression method (the best compression, but the slowest)
Later, you will see the web.rar file in the web directory.