Solved

ftp download of an entire directory

Posted on 1999-01-08
8
514 Views
Last Modified: 2013-12-15
I'm trying to download the mandrake CD-ROM to install mandrake, but I can't figure out how to download an entire
directory.
The directory is named 5.2. I've tried two things with the following unsuccessful results:
  ftp> get -R 5.2
  local: 5.2 remote: -R
  200 PORT command successful.
  550 -R: No such file or directory.

  ftp> bin
  200 Type set to I.
  ftp> hash
  Hash mark printing on (1024 bytes/hash mark).
  ftp> get 5.2.tar.gz
  local: 5.2.tar.gz remote: 5.2.tar.gz
  200 PORT command successful.
  150 Opening BINARY mode data connection for /bin/tar.
  226 Transfer complete.

  but, it doesn't download anything (I get 0MB for      5.2.tar.gz)

 Any suggestions? Do I need a different ftp tool (I have ftp-0.10-3)? Can it be done through Netscape?

Thanks,
Dave
0
Comment
Question by:djc2
8 Comments
 
LVL 51

Expert Comment

by:ahoffmann
Comment Utility
ftp> prompt
ftp> cd dir
ftp> mget *
0
 

Author Comment

by:djc2
Comment Utility
This doesn't work. It gets the files in the immediate directory, but it doesn't get the files in the subdirectories. For example:
  local: Mandrake/i386 remote: Mandrake/i386
  local: Mandrake/i386: No such file or directory

I believe the problem is that the subdirectories don't exist on my local computer, and this command can't create them.
0
 
LVL 51

Expert Comment

by:ahoffmann
Comment Utility
ftp cannot get directories recursively :-(
try if you find, or can manage to create, a tar file of the directory
0
 

Author Comment

by:djc2
Comment Utility
That's a bummer.

What I did was I tried 4 different mirrors until I found one that supported the: get 5.2.tar.gz. I found one (ftp.sunet.se), so that's what I'm doing now. Thanks!

Post your comment as an answer and I'll give you an A (it wasn't the answer I was hoping for ... but that's not your fault! it's ftp's fault.)

Thanks,
Dave
0
Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

 

Expert Comment

by:screwdriver
Comment Utility
I think the "mget" command in ncftp will solve your problem. It can dl the entire files in a directory (including files in subdir). Look at ncftp at http://rufus.w3.org/linux/RPM
0
 
LVL 51

Expert Comment

by:ahoffmann
Comment Utility
djc2, probably ncftp can do what you want. Check it first.
0
 
LVL 1

Accepted Solution

by:
mallah earned 50 total points
Comment Utility
2 simple steps.

1. Get wxftp  wxftp-0.4.0-1.i386.rpm ( 62 Kb) the coolest ftp
      client form powertools directory at ftp.redhat.com.
2. select a directory on the source side. click the  <- button
   to fetch all the directorys and sub-directories                    recursively.

It MUST work I have used it.
0
 

Author Comment

by:djc2
Comment Utility
Thanks.
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Over the last ten+ years I have seen Linux configuration tools come and go. In the early days there was the tried-and-true, all-powerful linuxconf that many thought would remain the one and only Linux configuration tool until the end of times. Well,…
Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now