Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

jar file to use rsync for uploading and downloading files on linux server

Tags:

java

rsync

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).

like image 395
Toman Avatar asked Sep 07 '10 12:09

Toman


People also ask

How does rsync work in Linux?

An rsync process operates by communicating with another rsync process, a sender and a receiver. At startup, an rsync client connects to a peer process. If the transfer is local (that is, between file systems mounted on the same host) the peer can be created with fork, after setting up suitable pipes for the connection.

Is rsync push or pull?

Rsync can push files to another server or pull files from another server. The difference between the two is in the syntax. If you specify your local file first, it will initiate a push. If you specify your remote host first, it will initiate a pull.


1 Answers

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

like image 151
Thorbjørn Ravn Andersen Avatar answered Oct 13 '22 20:10

Thorbjørn Ravn Andersen