June 22, 2012 0

Download all files from directory listing with wget

If you run across a directory listing of files that you'd like to download all at once, you can use a couple wget arguments to help you. Use -m to enable mirroring (equivalent to -r -N -l info --no-remove-listing) and --no-parent to prevent wget from recursing up directories. This command will download everything in the current directory and all directories below it.

wget -m --no-parent http://example.com/path/to/files/

As usual, run man wget for more information.

Tags:

Dedicated Server Hosting by Hivelocity