Navarr Navarr - 1 year ago 53
Linux Question

Downloading all files from an FTP Server

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 command, can I download every file, creating the directories needed for them in the process?


Use wget in this manner (m for mirroring):

wget -m

If your username or password contains special characters, you may need to use the format:

wget -m --user=username --password=password

Alternatively, I found this guide which shows you how to do it using ncftp 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" /home/vivek/backup /www-data