Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 10 Jan 2004 23:49:13 +0100 (CET)
From:      "Cordula's Web" <cpghost@cordula.ws>
To:        mnslinky@yahoo.com
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Download contents of http directory?
Message-ID:  <200401102249.i0AMnDal092110@fw.farid-hajji.net>
In-Reply-To: <20040110224342.23710.qmail@web13910.mail.yahoo.com> (message from Minnesota Slinky on Sat, 10 Jan 2004 14:43:42 -0800 (PST))
References:  <20040110224342.23710.qmail@web13910.mail.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
> 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/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200401102249.i0AMnDal092110>