Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

How can I download a specified directory and all it's files from an FTP server (requiring username+password)?

share|improve this question
add comment

4 Answers 4

up vote 3 down vote accepted

My personal preference is filezilla.

You can install it from the repositories by typing sudo apt-get install filezilla.

It's quite stable and with plenty of features.

enter image description here

Alternatively, if you want to download by using a shell FTP client (no GUI), you could try to use wget or ncftp.

Some examples:

ncftpget –R –v –u "username" <ftp_site> <local_dir> <remote_dir>, (where "R" = recursive, "v" = verbose)

wget -r ftp://username:password@<ftp_site>/

wget provides many options, i've used it many times myself and i think that you should really try it (read it's 'man page', it's worth it)

share|improve this answer
1  
What's the benefit of using Filezilla instead of Nautilus? –  Jo-Erlend Schinstad Aug 23 '11 at 4:48
add comment

Open Nautilus, select File > Connect to server.. Select FTP with login. When you're logged in, right click the folder you want to copy and paste it somewhere on your local system.

No need to install stuff. You have everything you need. :)

share|improve this answer
add comment

A few command line solutions from this thread on stackoverflow

wget -l 100 --user=<user> --password=<password> ftp://server/which/folder

(The -l 100 is for setting depth to 100, as -r sets it to 5)

wget -r ftp://user:pass@server.com/

(Might not always work, as per SO)

ncftp -u <user> -p <pass> <server>
ncftp> mget directory

Using sftp:

scp -r user@server:/which/folder

(This one is highly recommended over plain FTP)

share|improve this answer
add comment

Any FTP client is able to download directories recursively and also authenticate with a username and password. Just start Ubuntu Software Center, search for "ftp" and choose one of the options.

Filezilla looks like a good candidate to install and see if it works for you (though I never used it).

Or do you mean you want to download files in some unusual way (in a terminal, from a shell script, etc.)?

share|improve this answer
    
Yes preferably from terminal (I'm hardcore). –  amiawizard Aug 23 '11 at 3:19
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.