How to pack a site with a command, including all its directory files

xiaoxiao2021-03-06  72

Source: www.icyfoxLovelace.com How to pack a site with a command, including all its directory files

This problem is very simple, because most of the site hosts are installed, if you get the shell to run the EXE file, you can use the RAR.exe to make the package, RAR's detailed command can be in WinRar installation directory " Rar.txt "found, maybe because everyone is used to the graphical interface, Ignore these commands, I will give you a packing example, I hope to help everyone.

Example: Pack all things in the E: / Web / Directory to 1.rar in the E: / Web / Directory for download

C: / program files / WinRAR / rar.exe a -k -r -s -m1 e: /web/1.rar e: / web /

Parameter Description:

a Add file to the compressed file

-k lock compressed file

-S produces a solid archive, which increases the compression ratio

-r includes subdirectory

-m1 setting compression ratio

-m0 storage is not compressed when adding to a compressed file. -m1 fastest use of the fastest way (low compression) -M2 Faster use Rapid compression mode -M3 standard use standard (default) compression mode -M4 better use better compression mode (better compression, but slow) -M5 Good use of maximum compression (best compression, but slower)

转载请注明原文地址:https://www.9cbs.com/read-90261.html

New Post(0)