You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by Nicolas De Loof <ni...@capgemini.com> on 2005/06/24 10:25:22 UTC
[net] how to retreive a file using FTP and store it in local with
remote last change date ?
Hello,
My application has a requirement to synchronize some files between 2
servers. They're is no realistic concurrent modification risk, so we
consider using FTP to update files from remote serveur according to
files last acces date.
Does anyone have some code sample to retrieve a file using commons-net
FtpClient and set the local file last access date ?
Thansk. Nico.
This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message.
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org
Re: [net] how to retreive a file using FTP and store it in local with remote last change date ?
Posted by Paul Libbrecht <pa...@activemath.org>.
Sorry to diver but... I do this permanently with rsync (mostly over
ssh).
Not in java, not using ftp but fast, limits bandwidth, and preserves
also such things as file-permissions or modification dates...
rsync.samba.org.
paul
Le 24 juin 05, à 10:25, Nicolas De Loof a écrit :
> My application has a requirement to synchronize some files between 2
> servers. They're is no realistic concurrent modification risk, so we
> consider using FTP to update files from remote serveur according to
> files last acces date.
>
> Does anyone have some code sample to retrieve a file using commons-net
> FtpClient and set the local file last access date ?
>
> Thansk. Nico.
>
> This message contains information that may be privileged or
> confidential and is the property of the Capgemini Group. It is
> intended only for the person to whom it is addressed. If you are not
> the intended recipient, you are not authorized to read, print,
> retain, copy, disseminate, distribute, or use this message or any
> part thereof. If you receive this message in error, please notify the
> sender immediately and delete all copies of this message.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-user-help@jakarta.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org