msgbartop
Adam Palmer MBCS CITP, Linux, PHP Programmer, MySQL Developer, Embedded Hardware, Security Consultant
Did my blog help you? Please link to me!
  dns test
 
RSS Feed
msgbarbottom

10 Oct 09 Recursive FTP/HTTP Download

wget is a great tool. Here’s a short example on how to recursively get a directory from an FTP or HTTP server, also specifying credentials if required.

In short, wget -r http://www.domain.com/directory/ – this works the same with FTP: wget -r ftp://www.domain.com/directory/

If you need to specify a username and password to the FTP server: wget -r ftp://username:password@www.domain.com/directory/

To resume an existing session, specify -c and each file downloaded will attempt to resume from where it left off, if necessary.

Tags: , ,



Leave a Comment