bcc32
bcc32

Reputation: 328

WGet mirroring without putting it in a subdirectory (i.e. domain.com)

I am trying to mirror a website (with permission, of course), but the files download into foo.com.

wget -mkp http://foo.com

gives me a folder called foo.com with all the files.

how do i get it to download the files to the current directory?

EDIT: I still want file hierarchy, but i want the root of the hierarchy to be the current directory

Upvotes: 3

Views: 2676

Answers (2)

Rob
Rob

Reputation: 7099

-n is what'll help you here.

wget -nH --mirror http://example.com

Upvotes: 8

Dmitry Z.
Dmitry Z.

Reputation: 434

try to use wget within "-nd" param

wget -nd --mirror http://example.com

Upvotes: 4

Related Questions