Sign up ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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?


share|improve this question

1 Answer 1

up vote 3 down vote accepted

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 \
share|improve this answer
Excellent, this is even better than the ftp command. +1 – Ben Everard Jan 14 '10 at 21:56

Your Answer


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.