Go to the first, previous, next, last section, table of contents.
- `-t number'
-
- `--tries=number'
-
Set number of retries to number. Specify 0 or `inf' for
infinite retrying.
- `-O file'
-
- `--output-document=file'
-
The documents will not be written to the appropriate files, but all will
be concatenated together and written to file. If file
already exists, it will be overwritten. If the file is `-',
the documents will be written to standard output. Including this option
automatically sets the number of tries to 1.
- `-nc'
-
- `--no-clobber'
-
Do not clobber existing files when saving to directory hierarchy within
recursive retrieval of several files. This option is extremely
useful when you wish to continue where you left off with retrieval of
many files. If the files have the `.html' or (yuck) `.htm'
suffix, they will be loaded from the local disk, and parsed as if they
have been retrieved from the Web.
- `-c'
-
- `--continue'
-
Continue getting an existing file. This is useful when you want to
finish up the download started by another program, or a previous
instance of Wget. Thus you can write:
wget -c ftp://sunsite.doc.ic.ac.uk/ls-lR.Z
If there is a file name `ls-lR.Z' in the current directory, Wget
will assume that it is the first portion of the remote file, and will
require the server to continue the retrieval from an offset equal to the
length of the local file.
Note that you need not specify this option if all you want is Wget to
continue retrieving where it left off when the connection is lost--Wget
does this by default. You need this option only when you want to
continue retrieval of a file already halfway retrieved, saved by another
FTP client, or left by Wget being killed.
Without `-c', the previous example would just begin to download the
remote file to `ls-lR.Z.1'. The `-c' option is also
applicable for HTTP servers that support the Range
header.
- `--dot-style=style'
-
Set the retrieval style to style. Wget traces the retrieval of
each document by printing dots on the screen, each dot representing a
fixed amount of retrieved data. Any number of dots may be separated in
a cluster, to make counting easier. This option allows you to
choose one of the pre-defined styles, determining the number of bytes
represented by a dot, the number of dots in a cluster, and the number of
dots on the line.
With the
default
style each dot represents 1K, there are ten dots
in a cluster and 50 dots in a line. The binary
style has a more
"computer"-like orientation--8K dots, 16-dots clusters and 48 dots
per line (which makes for 384K lines). The mega
style is
suitable for downloading very large files--each dot represents 64K
retrieved, there are eight dots in a cluster, and 48 dots on each line
(so each line contains 3M). The micro
style is exactly the
reverse; it is suitable for downloading small files, with 128-byte dots,
8 dots per cluster, and 48 dots (6K) per line.
- `-N'
-
- `--timestamping'
-
Turn on time-stamping. See section Time-Stamping for details.
- `-S'
-
- `--server-response'
-
Print the headers sent by HTTP servers and responses sent by
FTP servers.
- `--spider'
-
When invoked with this option, Wget will behave as a Web spider,
which means that it will not download the pages, just check that they
are there. You can use it to check your bookmarks, e.g. with:
wget --spider --force-html -i bookmarks.html
This feature needs much more work for Wget to get close to the
functionality of real WWW spiders.
- `-T seconds'
-
- `--timeout=seconds'
-
Set the read timeout to seconds seconds. Whenever a network read
is issued, the file descriptor is checked for a timeout, which could
otherwise leave a pending connection (uninterrupted read). The default
timeout is 900 seconds (fifteen minutes). Setting timeout to 0 will
disable checking for timeouts.
Please do not lower the default timeout value with this option unless
you know what you are doing.
- `-w seconds'
-
- `--wait=seconds'
-
Wait the specified number of seconds between the retrievals. Use of
this option is recommended, as it lightens the server load by making the
requests less frequent. Instead of in seconds, the time can be
specified in minutes using the
m
suffix, in hours using h
suffix, or in days using d
suffix.
Specifying a large value for this option is useful if the network or the
destination host is down, so that Wget can wait long enough to
reasonably expect the network error to be fixed before the retry.
- `-Y on/off'
-
- `--proxy=on/off'
-
Turn proxy support on or off. The proxy is on by default if the
appropriate environmental variable is defined.
- `-Q quota'
-
- `--quota=quota'
-
Specify download quota for automatic retrievals. The value can be
specified in bytes (default), kilobytes (with `k' suffix), or
megabytes (with `m' suffix).
Note that quota will never affect downloading a single file. So if you
specify `wget -Q10k ftp://wuarchive.wustl.edu/ls-lR.gz', all of the
`ls-lR.gz' will be downloaded. The same goes even when several
URLs are specified on the command-line. However, quota is
respected when retrieving either recursively, or from an input file.
Thus you may safely type `wget -Q2m -i sites'---download will be
aborted when the quota is exceeded.
Setting quota to 0 or to `inf' unlimits the download quota.
Go to the first, previous, next, last section, table of contents.