Tips for using wget

''$ wget -r -np -nd http://example.com/packages/''

This little gem is probably my most used variation. It will download all files in the /packages/ directory on example.com — without traversing up to parent directories (-np), and without recreating the directory structure on your machine (-nd).

''$ wget -r -np -nd --accept=iso http://example.com/centos-5/i386/''

Adding the –accept argument with a list of file extensions (comma separated) will grab only those files ending in the specified extension.

''$ wget -i filename.txt''
''$ wget -c http://example.com/really-big-file.iso''

The “-c” option tells wget to continue and retry until it has completed downloading.

''wget -m -k (-H) http://www.example.com/''

Make a mirror.

 
sci/cs/unix/wget.txt · Last modified: 2007/10/13 22:04 by flanker27
 
Recent changes RSS feed Creative Commons License Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki