0

Using the FTP command in the Unix terminal I want to download all files / folders from my FTP server.

When I use this command:

ftp> mget *

I get lots of these errors:

ftp: Unable to determine real path of `subdomains': No such file or directory
Skipping non-relative filename `subdomains/dev'

Does anyone know how I can get all files and maintain the directory structure without getting the errors?

Thanks

1 Answer 1

3

wget can mirror ftp sites as well. Here is an example on how to mirror Project Gutenberg Europe.

wget --mirror --no-host-directories --passive-ftp --no-parent --cut-dirs=4 \
     --output-file=/tmp/wget-gutenberg.log ftp://ftp.ibiblio.org/pub/docs/books/gutenberg
1
  • Excellent, this is even better than the ftp command. +1 Jan 14, 2010 at 21:56

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .