Download contents of http directory?

Cordula's Web cpghost at cordula.ws
Sat Jan 10 14:50:09 PST 2004


> How can I download the entire contents of a directory
> on a webserver?  I can see them in index mode, but
> it's a list of about 2,000 jpg files for a reunion. 
> How can I download everything there to one directory?

With /usr/ports/ftp/wget:

  wget -r -x -v -np -k -np http://www.example.com/path/to/dir

Without -x, files will be saved in the current directory,
with -x in www.example.com/path/to/dir

-np (no parent) is important, if you don't want directories
above /path/to/dir

-- 
Cordula's Web. http://www.cordula.ws/



More information about the freebsd-questions mailing list