Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I have issues using wget,

basically I use it like:

wget -m ftp://username:password@hostname.com:/path/to/dirs

After everything's complete (it says xxx files in xx MB for xx seconds), however, when I inspect the files, I notice it actually didn't completely download everything, am I missing something?

share|improve this question
    
By "completely download," are you saying (a) It only downloaded some of the files completely, or (b) it download all of the files, but some of them have only partial content? –  Andrew M. Jan 2 '11 at 15:00
    
it's (a), any idea what's causing it? –  andreas Jan 2 '11 at 15:09
    
This might be a duplicate of: serverfault.com/questions/178607/… –  Paul Jan 2 '11 at 15:43

1 Answer 1

There's nothing wrong with your command (except a missing port, which wget can handle).

How are you verifying your local files are the same as the remote ones? You could try retrieving a problematic file with cURL for comparison. If you are certain they're different then I suspect it's something to do with the FTP server.

Check:

  • the FTP server's transfer logs - are the transfers listed as complete?
  • in wget's output: is the Length header returned or do you see Length: unspecified
  • any errors in wget's output
share|improve this answer

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.