tags:

views:

43

answers:

3

I need to download everything from an FTP server to hosting on a different server. I have shell access only to the server I'm downloading the files to. How, using the Linux FTP comnand, can I download every file, creating the directories needed for them in the process?

A: 

You can't. Use wget instead.

Ignacio Vazquez-Abrams
+2  A: 

Use wget in this manner (m for mirroring):

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

Alternatively, I found this guide which shows you how to do it in Debian. You will require root access to the new server if ncftp is not installed already.

In short:

sudo apt-get install ncftp
ncftpget –T –R –v –u "ftpuser" ftp.nixcraft.net /home/vivek/backup /www-data
Emil Vikström
Thanks. I actually had found it myself right before seeing this. Wasn't using the right google search terms the first five times.
Navarr
A: 

Some FTP servers allow to download whole directories by suffixing their name with .tar or .tgz. The server then creates an archive of that directory.

mouviciel