How to download a whole FTP site using command line?
Solution 1:
Try the following:
wget -r ftp://username:[email protected]
this will go to 5 depth levels; to increase, add the -l
option
Some servers don't like this behavior, and you risk getting blacklisted because of the load on the server. To avoid this, use the -w
option to wait a specified number of seconds.
More info (as well as caveats) can be found here:
http://www.gnu.org/software/wget/manual/wget.html#Recursive-Download
http://linuxreviews.org/quicktips/wget/
--user
and --password
arguments are useful for usernames/passwords with special characters.