Using wget to recursively download whole FTP directories

Posted by user9406 on Server Fault See other posts from Server Fault or by user9406
Published on 2009-06-13T09:21:45Z Indexed on 2012/11/25 23:09 UTC
Read the original article Hit count: 261

Filed under:
|

I want to copy all of the files and folders from one host to another. The files on the old host sit at /var/www/html and I only have FTP access to that server, and I can't TAR all the files. Regular connection to the old host through FTP brings me to the /home/admin folder.

I tried running the following command form my new server:

wget -r ftp://username:[email protected]

But all I get is a made up index.html file.

What the right syntax for using wget recursively over FTP?

© Server Fault or respective owner

Related posts about ftp

Related posts about recursive