Introduction

There are times, when sharing files using email as attachment is not possible, and then one of the best ways is to put those files in a FTP server, of course, it is even better to put all of them in a zip file, but the other end does not usually do that.

So, if you have a full folder structure you need to download using some recursive download tool, you have some options, one of them is gftp which is a graphic ftp client, but I’ll show you how to do this using the command line of Linux.

Download full ftp folders recursively

Using ncftpget to recursively download files and folders from FTP

First install ncftp tools:

For Debian / Ubuntu

apt-get install ncftp

For Arch Linux

<pre>pacman -Syu ncftp</pre>

or with your package manager.

Then issue this command.

ncftpget -R -v -u "username" remote-server.com /local-directory remote-directory

It will ask you for the password.

I’ve seen some situations where this command does not work, but fortunately I am using Linux Operating System :), and there are options.

Using wget to download files from ftp server, recursive mode

wget is a great tool, and it can also be used with ftp servers, and it also can download files and folders recursively.

wget -r ftp://username:password@remote-server

Conclusion

Use man ncftpget and man wget for more options, and if you have other ways, please share them with us.