Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 357
  • Last Modified:

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
0
jaycangel
Asked:
jaycangel
  • 4
  • 3
  • 2
  • +2
5 Solutions
 
ravenplCommented:
seem like wger is capable of resuming transfer.
Read: man wget
options -c -r
0
 
PsiCopCommented:
There are no facilities in the FTP protocol itself to resume an interrupted download, as there were in, say, the old Z-Modem protocol. Any resumption capability woiuld be an extension of the FTP protocol that must be provided for by the client and server softwares, which have to agree on how to do it. If your softwares don't support that functionality, then you're kinda stuck.
0
 
ppfoongCommented:

There is a perl script named as "mirror" that can do exactly what you want with FTP, which has been existing and in used by many mirroring FTP sites for decades.

It is probably included in your Linux distro CD.

0
Veeam Task Manager for Hyper-V

Task Manager for Hyper-V provides critical information that allows you to monitor Hyper-V performance by displaying real-time views of CPU and memory at the individual VM-level, so you can quickly identify which VMs are using host resources.

 
ravenplCommented:
> 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.
0
 
GnsCommented:
I used to use wget a lot in situations like this (mirroring stuff from /nai/mcafee, amongst other things), but have now moved on to lftp and its mirror function. Very slick commandline ftp client, very stable mirroring functions. lftp is part of most distros, but you can find it at: http://lftp.yar.ru/
Try it, you'll like it:-).

-- Glenn
0
 
Kerem ERSOYPresidentCommented:
Hi,

You might as well try to use rsync command too
0
 
Kerem ERSOYPresidentCommented:
Hi,

You might as well try to use rsync command too. This way you can use versioning tc. You will be able to copy only the modified files on subsequent runs.

A command like that:

rsync -avz foo:src/bar /data/tmp

assuming your server name is foo and directory to copy is foo/bar into your backup systems /data/tmp with all the permisions, symlinks, directory structure etc. are preserved and using compression during the transfer.

It is also possible to do the transfer over SSH and this way you wont need to transfer passwords etc. in cleartext like ftp
does.

Cheers,
K.
0
 
GnsCommented:
Uh, KeremE... s/he says in teh question: no rsync....:-)

-- Glenn
0
 
Kerem ERSOYPresidentCommented:
> 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 :)
0
 
GnsCommented:
True:-)

-- Glenn
0
 
GnsCommented:
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
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 4
  • 3
  • 2
  • +2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now