Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

When downloading large files (ca. 5GB) with the lftp client, I find that a restart of the FTP service (vsftpd) stops the transfer and I have to restart it from the beginning. Is there a way to prevent the transfer from failing when the FTP server is restarted?

share|improve this question
Not restarting the FTP server isn't an option? – Daniel Beck Jul 17 '13 at 17:58
Expecting a restart of the FTP server not to kill the transfer is expecting too much; I'd suggest that the problem here is that the FTP server gets restarted too often, and that it'd be more worth your time to look for either a way to prevent that from happening, or an alternate file transfer mechanism that's more resilient than FTP. (For example, if the files are also available via HTTP from a service supporting the Range header, you can use a client such as wget which supports restarting partially completed downloads.) – Aaron Miller Jul 17 '13 at 18:09

It's not possible as terminating the vsftpd service will also terminate any network connections it has. Even if you could force the client to ignore this, the newly restarted service isn't going to know what to do with fragments of an FTP transfer in progress from a client that hasn't previously logged in to it.

FTP has a facility for resuming interrupted downloads, and vsftpd does support resuming if configured correctly. Looks like the pget -c option in lftp also supports resuming a client transfer.

share|improve this answer

You must log in to answer this question.

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