Sample Header Ad - 728x90

How do I use FTP via the command line to download all files?

5 votes
4 answers
15761 views
I tried to use Filezilla and Cyberduck for file transfer over a simple FTP server. The problems I have is: - Filezilla: When I use it for file transferring, I check the "Activity Monitor", the "% CPU" usage is like 150% - 200%. I was shocked. My mac start to become lag, so I stop it. - Cyberduck: When I download a folder from ftp, about 60mb, inside have small files (*.php, *.jpg etc). It took about 8 hours to download the files(there is a time indication of how much time left in cyberduck). If I use filezilla, it only takes about 1-3 mins. I notice, when using Cyberduck, it keep setting the permissions first, not really transfer the files directly. And it took quite long. Thus, I went to google, and I found that mac can use Terminal to connect to ftp server and download files. ftp hostname mget * (download all the files) Now, another problem, let say, in my ftp I have: - blog(folder) - php(folder) - img(folder) - others folder I want to download "blog" and its subsequent folders and files. Can I do it in 1 command line? If no, how do you download my "blog" folder? I remember in unix/linux command, there is something like this: - remove -R blba which remove the folder blba recursively (its subsequent folders and files), I wonder if mac's terminal ftp command can support this. Please advise
Asked by jiali (125 rep)
Oct 18, 2011, 03:52 AM
Last activity: Nov 16, 2022, 07:29 PM