Link to home
Start Free TrialLog in
Avatar of jaycangel
jaycangel

asked on

How to assure an resumes FTP until a download is complete

I have to sync a directory from a remote server. The FTP link is pretty fast, but for some unknown reason cannot finish an entire file in one ftp download, it always needs to resume to do it:

I would like to know if their is a program or script out their that will :

- download all latest files
- if transfer fails to resume until entire file is down
- maintain remote time stamp

Ideally

- be notified via email if a download is unsuccessful for an extended period (but to continue to try and download)
- be emailed when a download occurs

Unfortunately I cannot put rsync on the remote server or i would of done that. All i have is FTP

Thanks
ASKER CERTIFIED SOLUTION
Avatar of ravenpl
ravenpl
Flag of Poland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Avatar of PsiCop
PsiCop
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
> There are no facilities in the FTP protocol itself to resume an interrupted download
Almost every server supports reget command. wget will use it if transfer was interrupted.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Kerem ERSOY
Kerem ERSOY

Hi,

You might as well try to use rsync command too
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Uh, KeremE... s/he says in teh question: no rsync....:-)

-- Glenn
> Uh, KeremE... s/he says in teh question: no rsync....:-)

He says "Unfortunately I cannot put rsync on the remote server" by that I guess he/she means he can not run rsync server n daemon mode but the comand I listd above will connectthe server over SSH and get files via SSH and would not need rsync run there in server mode.

This is a matter of interpretation :)
True:-)

-- Glenn
All participants have either mentioned tools that will be able to do this, or info that is correct (PsiCop), so ... split it any which way you want to:-).

The asker could have taken the time to go more in-depth with any of us, but chose not to... it seems.
Or we collectively missed the askers point totally, in which case this should be a delete/refund... but only the skaer can really tell us that:-)

-- Glenn