ftp file since last ftp operation

ftp file since last ftp operation

Post by Phi » Tue, 30 Jan 2001 04:13:35



I am trying to develop an ftp mechanism that will only transfer files
from a remote host which were created after the latest timestamp from
files transferred in the previous ftp operation.

The problem I am wonderng about is that the remote server may crash
and come back up with a "different" system date/time which could
result in some files not being ftp'd.

Can anybody suggest a solution to this or is there some "standard"
solution to this problem?

Thnaks

Phil

 
 
 

ftp file since last ftp operation

Post by Derek M. Fly » Tue, 30 Jan 2001 04:41:28



> I am trying to develop an ftp mechanism that will only transfer files
> from a remote host which were created after the latest timestamp from
> files transferred in the previous ftp operation.

> The problem I am wonderng about is that the remote server may crash
> and come back up with a "different" system date/time which could
> result in some files not being ftp'd.

> Can anybody suggest a solution to this or is there some "standard"
> solution to this problem?

Network time protocol (NTP).  http://www.ntp.org

 
 
 

ftp file since last ftp operation

Post by Nate Eldredg » Tue, 30 Jan 2001 05:49:30



> I am trying to develop an ftp mechanism that will only transfer files
> from a remote host which were created after the latest timestamp from
> files transferred in the previous ftp operation.

rsync is a very convenient way of handling this.
http://rsync.samba.org

Quote:> The problem I am wonderng about is that the remote server may crash
> and come back up with a "different" system date/time which could
> result in some files not being ftp'd.

The solution for this is to keep its clock correct.  NTP is usually
used for this purpose.  http://www.ntp.org

--

Nate Eldredge

 
 
 

ftp file since last ftp operation

Post by Frank da Cr » Tue, 30 Jan 2001 06:02:14



: I am trying to develop an ftp mechanism that will only transfer files
: from a remote host which were created after the latest timestamp from
: files transferred in the previous ftp operation.
:
: The problem I am wonderng about is that the remote server may crash
: and come back up with a "different" system date/time which could
: result in some files not being ftp'd.
:
: Can anybody suggest a solution to this or is there some "standard"
: solution to this problem?
:
Here is a new FTP client that does exactly what you describe:

  http://www.columbia.edu/kermit/ftpclient.html

Use the UPDATE option, described here:

  http://www.columbia.edu/kermit/ckermit3.html#x3

Also see the sample scripts here:

  http://www.columbia.edu/kermit/ftpscript.html

- Frank

 
 
 

ftp file since last ftp operation

Post by Kenny McCorma » Tue, 30 Jan 2001 07:43:39





>> I am trying to develop an ftp mechanism that will only transfer files
>> from a remote host which were created after the latest timestamp from
>> files transferred in the previous ftp operation.

>rsync is a very convenient way of handling this.
>http://rsync.samba.org

Most commonly accepted solutions to this general problem assume correct time
being in use on all of the involved machines.  This isn't the case in this
situation, so I doubt they (any of the commonly accepted solutions) will
work.

Quote:>> The problem I am wonderng about is that the remote server may crash
>> and come back up with a "different" system date/time which could
>> result in some files not being ftp'd.

>The solution for this is to keep its clock correct.  NTP is usually
>used for this purpose.  http://www.ntp.org

Again, by assumption, I think it is to be assumed that having the remote
machine on proper time is not an option.  If it were, any of the standard,
commonly accepted solutions would work, and the OP probably would have just
used one of them instead of posting to the Usenet.

As it is, the problem is an interesting and intriguing one - I'm not sure
off hand what the solution is.

 
 
 

ftp file since last ftp operation

Post by Richard Hecto » Tue, 30 Jan 2001 12:01:34






> >> I am trying to develop an ftp mechanism that will only transfer files
> >> from a remote host which were created after the latest timestamp from
> >> files transferred in the previous ftp operation.

> >rsync is a very convenient way of handling this.
> >http://rsync.samba.org

> Most commonly accepted solutions to this general problem assume correct time
> being in use on all of the involved machines.  This isn't the case in this
> situation, so I doubt they (any of the commonly accepted solutions) will
> work.

> >> The problem I am wonderng about is that the remote server may crash
> >> and come back up with a "different" system date/time which could
> >> result in some files not being ftp'd.

> >The solution for this is to keep its clock correct.  NTP is usually
> >used for this purpose.  http://www.ntp.org

> Again, by assumption, I think it is to be assumed that having the remote
> machine on proper time is not an option.  If it were, any of the standard,
> commonly accepted solutions would work, and the OP probably would have just
> used one of them instead of posting to the Usenet.

> As it is, the problem is an interesting and intriguing one - I'm not sure
> off hand what the solution is.

Couldn't you ue ntp to figure out what time the remote machine _thinks_
it is, then use some local calculations to get what you want?

Richard

 
 
 

ftp file since last ftp operation

Post by Frank da Cr » Tue, 30 Jan 2001 23:43:30




: >



: > >
: > >> I am trying to develop an ftp mechanism that will only transfer files
: > >> from a remote host which were created after the latest timestamp from
: > >> files transferred in the previous ftp operation.
: > >
: > ...
: > Most commonly accepted solutions to this general problem assume correct
: > time being in use on all of the involved machines.  This isn't the case in
: > this situation, so I doubt they (any of the commonly accepted solutions)
: > will work.
: > ...
: > >The solution for this is to keep its clock correct.  NTP is usually
: > >used for this purpose.  http://www.ntp.org
:
: Couldn't you ue ntp to figure out what time the remote machine _thinks_
: it is, then use some local calculations to get what you want?
:
Again: The new Kermit ftp client:

  http://www.columbia.edu/kermit/ftpclient.html

takes care of all this for you.  A detailed description of the precise
mechanism for update mode when uploading is given here:

  http://www.columbia.edu/kermit/ckermit3.html#x3.5.2

It also applies to downloading, but in the reverse direction.  Bear in mind
that the server reports a file's time in GMT (UTC), but you don't know what
time zone the server is in.  When downloading, you can have Kermit give the
downloaded file the current time, or the time from the server -- your choice
(in UNIX, which uses GMT/UTC internally anyway, this is just what you want).
If you use the latter method, e.g.:

  get /update *

then only the files that are newer than those already downloaded will be
downloaded again.

- Frank

 
 
 

1. Solaris ftp v Pro-ftp v WU-ftp

One-year newbie Solaris admin here. (And four yrs Linux experience extra,
does
that count extra credit?)

Management thinks they want an internet ftp server for the company.
Whatever,
they're mgt, and 'I serve at their pleasure'.. and paycheck. My questions:

1). why use a package like ProFTP or WU-ftp, instead of Solaris 2.6 ftp,
which
seems to me easy enough to use and cfg? (I'd ask them why, but that'd be
interpreted
as 'a bad thing'.)
2). which FTP is 'better'? I've heard of WU-ftp security holes, but am not
familiar
with Pro-FTP problems.
3). is there a better way to go?

I'm guessing this is for external customer browser convenience, which will
make me
RTFMs soon enough, yet any other comments, suggestions, or insights would be
appreciated. Thank you.

-fgz
(name alias and bogus email adrs to protect the guilty.)

2. Q: freezing up?

3. FTP: New Linux FTP site: ftp.kernel.org

4. Console graphic image viewer?

5. Secure ftp, ftp over stunnel og ftp-ssl.

6. Run a program in background !!!

7. How can I remove last line from a file and FTP

8. Need Help on PCI-device

9. need ftp example files for RedHat ftp

10. file transfer: FTP or FTP ?

11. script to FTP a file from a FTP site on a regular basis

12. ftp chroot jail dir & pam 1.0 /etc/pam.d/ftp file

13. Is there an FTP macro to ftp a file subtree??