Hi
Sftp won't do what you need. It transforms data between sever/client, it
does not take care file synchronization.

If what you need is to synchronize your file, you can use WinSCP or other
clients which has build in synchronization. Or you can use rsync or
something like that.
If you want to develop a tool to synchronizing file/directories, you have
to get the source code of rsync and read it. Rsync is a big program; file
synchronization is not easy to implement correctly.

Pan Li
http://Prominic.NET  ||  pa...@prominic.net
8620-82316133


                                                                                
                                                     
  From:       白浩平 <baihaop...@gmail.com>                                        
                                                  
                                                                                
                                                     
  To:         <jsch-users@lists.sourceforge.net>                                
                                                     
                                                                                
                                                     
  Date:       2009/10/11 15:09                                                  
                                                     
                                                                                
                                                     
  Subject:    [JSch-users] how to synchronize files with sftp                   
                                                     
                                                                                
                                                     





Hi, all

         I  don’t  know if I have sent one same mail, if so, I am so sorry,
please ignore the last one.

         Here is my problem:

                   I  have  to  ssh  to  a  relay server, and then ssh to a
development server and then ssh to a test server.
         Now  I  want  to synchronize files with sftp between local machine
and the test server. What should I do?

         Please help me with some code example, thanks very much!
------------------------------------------------------------------------------

Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
JSch-users mailing list
JSch-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jsch-users

<<inline: graycol.gif>>

<<inline: ecblank.gif>>

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
JSch-users mailing list
JSch-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jsch-users

Reply via email to