jar 文件使用 rsync 在 Linux 服务器上上传和下载文件
我正在编写一个用于备份用户数据的应用程序。在我的应用程序中,我必须执行增量备份操作。为了执行增量备份,我尝试使用 rsync 算法。
我正在编写Windows版本的应用程序。我有Linux 托管服务器来存储文件。经过一番搜索后,我得到了两个库“jarsync-0.1”和“sisyphe-0.92”,但“jarsync-0.1”是 测试版 jar 并没有给出适当的结果。并且“sisyphe-0.92”配置了linux操作系统
请您向我推荐任何可用于rsync(适用于Windows版本)的java中的lib文件。
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).
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
目前还没有完整的 rsync Java 端口。
在你的情况下,我会研究你可以调用的本机 rsync。 DeltaCopy 有一个适用于 Windows 的 rsync GUI,可能很有用。 http://www.aboutmyip.com /AboutMyXApp/DeltaCopy.jsp
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
我想,这将仍然没有答案。由于没有正在积极开发的 Java rsync 库。
我刚刚发现此处已经有关于此主题的讨论。
显然,大多数人碰巧通过系统调用实现了 rsync(即通过 Java 应用程序调用本机调用)。
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).
我认为可以编码该应用程序的唯一方法是通过对操作系统的本机 rsync 调用。由于没有积极开发的可用于 rsync 的 java 实现。所以我的建议是下载在命令行中工作的 rsync 实用程序,并通过代码中的进程调用来调用该实用程序。
这是我目前能想到的最好的解决方案。
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.