WGET – FTP Download a directory recursively

Monday, October 26, 2009 0:09
Posted in category Unix/Linux

We often need to download a directory from a ftp server to a local computer. You can do this using wget and its -r parameter.  The command would be:

wget -l 30 -r ftp://user:pass@host/some_directory/

-l  sets the level depth. default value is 5 layers. i put 30 to be sure wget gets the whole tree

You can leave a response, or trackback from your own site.

Leave a Reply

Connect with Facebook