tags:

views:

41

answers:

3

Hi All,

I am writing an application for taking backup of user data. In my application i have to perform incremental backup operation. for performing incremental backup i am trying to use rsync algorithm.

i am writing application for windows version. I am having linux hosting server for storing files. after some search i got two lib "jarsync-0.1" and "sisyphe-0.92" but "jarsync-0.1" is a beta release jar and not giving appropriate result. and "sisyphe-0.92" is configued with linux o.s.

Please could you suggest me any lib file in java that can be used for rsync (for windows version).

+1  A: 

There is currently no complete Java port of rsync.

In your case I would look into a native rsync you could call. DeltaCopy has an rsync GUI for Windows which may be useful.. http://www.aboutmyip.com/AboutMyXApp/DeltaCopy.jsp

Thorbjørn Ravn Andersen
+1 for deltacopy.
Sumit Ghosh
A: 

I guess, this is going to remain unanswered. Since there are no rsync libraries for Java being actively developed.

I just found there is already a discussion on this topic here.

Apparently, most of the guys happen to have implemented rsync via system calls(i.e invoke native calls via your Java app).

pavanlimo
A: 

Hi Toman,

The only way I see this application can be coded is via native rsync calls to the OS. Since there are no actively developed java implementations available for rsync. So my suggestion would be to download rsync utility which works in command line and call the utility via process calls in your code.

This is the best possible solution I could think of as of now.

Sumit Ghosh