I want to use wget to download a whole image directory(something like mystie.com/images/
) from one server to another. But when I go
wget --no-parent --recursive http://mysite.com/images/
I am always getting a generated index.html
file instead of the directory. I know I probably need to do something on the source server to allow wget
to retrieve the contents in it, but I don't know how not even what keywords to search. Thank you for your help.
Both server are running under ubuntu 16.04 and I have root access.
wget
you have two possibilities: you can mirror the site over http, as you do, but then you will only get the images that are linked to on the website; or you can dowget
over FTP by specifying an FTP username and password. In the latter case,wget
can retrieve a listing of the items in the directory and download them all.