Ny ftp command to resume upload

ftp

Oh! with my slow net connection, I am badly stuck. I was uploading a video file from local box to remote one via ftp. But net failed.I know there is a command named reget to resume download but Is there any command to resume upload.?
If no then I am hit.

Best Answer

I always use the lftp client which has the ability to resume a download that either died midstream or that I want to cancel and later restart.

I usually use the command like so:

$ lftp -e "mirror -c /download/<dir> /local/<dir>" -u user -p <port> ftp.server.com

What else?

This tool's name is a bit misleading, it can handle either FTP or SFTP.

ftp

$ lftp -e "mirror -c /download/<dir> /local/<dir>" -u user ftp://ftp.server.com

sftp

$ lftp -e "mirror -c /download/<dir> /local/<dir>" -u user sftp://sftp.server.com

Mirroring Links

From time to time you might encounter a issue with mirroring directories that contain symlinks, to work around this issue you can add this option to your lftp command:

set ftp:list-options -L

For eg:

$ lftp -e "set ftp:list-options -L; mirror -c /download/<dir> /local/<dir>" \
    -u user ftp://ftp.server.com

References

Related Question