Mirroring website good helper - Wget usage method

xiaoxiao2021-03-06  63

Wget common parameters are as follows (the following information can also be obtained by performing Wget - HELP):

GNY WGET 1.5.3, a non-talks of network grab tool.

Usage: wget [option] ... [URL] ...

The quotes of the command use long items as the short project.

start up:

-V, --Version displays the version of the WGET and leaves.

-H, --Help Displays this instruction file.

-b, -Background jumps to the background after startup.

-e, -execute = command executes a Command instruction in a`wgetrc '.

Record file with the entered file:

-o, --output-file = file record message to File.

-a, -append-output = file Add message to File.

-d, --debug Shows the output of the error.

-q, --quiet quiet mode (do not enter any messages).

-v, --verbose lengthy mode (this is an internal value).

-nv, --non-verbose Close Verbosene, but is not quiet mode.

-i, --input-file = file reads URLs from the FILE.

-F, --force-html uses the input file as an HTML.

download:

-T, --Tries = Number Setup Repeat Try Number (0 is unlimited).

-O --Output-docuument = file Write the file to the file.

-nc, --NO-Clobber does not destroy existing files.

-c, --Continue re-acquires an existing file.

- DOT-style = style Set the display style of the retrore condition.

-N, --TimeStamping does not retrieve the older file.

-S, - Server-response Displays the server response.

--Spider does not download anything.

-T, --Timeout = Seconds Set the time exceeded when reading is seconds second.

-w, --wait = seconds Wait a second of seconds when retrieving files.

-Y, --Proxy = on / off on or off Proxy.

-Q, - quota = NUMBER Setting the quota of the retrofit file is limited to NUMBER.

table of Contents:

-nd - NO-Directories does not establish a directory.

-x, --force-directories enforces the work created by directory.

-nh, --NO-Host-Directories does not build a directory of the host.

-P, --directory-prefix = prefix puts the file to prefix / ...

--cut-dirs = Number ignores directory elements of the Number remote.

HTTP options:

--Http-user = User sets HTTP users for user.

--Http0Passwd = Pass Sets the HTTP user's password to pass.

-C, --cache = ON / OFF provides / shuts down the servo data (provided in normal conditions).

--ignore-length ignores the `Content-Length 'header field.

--Proxy-user = USER Sets User as the Proxy user name.

--Proxy-passwd = pass Set Pass as Proxy Password.

-s, --save-headers Store HTTP headers to become files.

-U, - user-agent = agent Using the agent to replace Wget / Version as the identification code.

FTP options:

- RETR-SYMLINKS Retrieves the emblem link of FTP.

-g, - Glob = ON / OFF TURN FILE NAME GLOBBING ON OT OFF.

- Passive-FTP uses "passive" transfer mode.

Use the retrieval of the back mode:

-r, --Recursive is like a retrieval of the Web - Please use it carefully!

-l, --level = Number The maximum value of the postback level (0 is not limited).

- Delete-After deletes downloaded files. -K, --convert-links change does not have a connection connection.

-m, --mirror turns on the option for the appropriate mapping.

-nr, --d-remove-listing Do not remove the `.listing 'file.

Allow and rejection options for post-back homework:

-A, --Accept = list allowed to extend the list of expansion items.

-R, --Reject = List reject a list of expansion items.

-D, --domains = list allowed domain list.

--ExClude-domains = list The domain list (with comma is separated).

-L, --RELATIVE only follows the associated link.

- Follow-FTP follows the FTP link in the HTML file.

-H, --Span-hosts When starting back, the host is outside.

-I, -include-directories = list allowed list of directory.

-X, --Exclude-directories = list exclusted list.

-NH, --NO-Host-Lookup does not use DNS to find the host.

-np, --NO-PARENT does not pursue the origin of origin.

Example 1: Mirror a website

wget -r www.redhat.com

Example 2: A directory under a website:

Wget -r www.redhat.com/mirrors/ldp

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

New Post(0)