问题标签 [librsync]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
c - Librsync:Win10和Win8/Win7不同的结果
我正在使用 librsync 生成二进制补丁并将它们发送给其他用户。但我遇到了一个问题:在 win8/win7 上的某些文件上,应用补丁后的校验和(sha512)与在 win10 上应用补丁后的校验和不同。librsync 使用 msvc 14 64 位构建。
我尝试在 win10 和 win8 上构建 librsync - 没有结果。
我尝试在所有系统上使用相同的库(api-ms-*) - 没有结果。
故障文件 - 带有图形资源的文件。与其他文件库一起运行良好:win10 和 win8 上的校验和相同。
我该如何解决?
java - 使用rsync4j库,一个Linux rsync工具的Java实现,如何将远程目录的数据与本地目录同步
我需要像rsync
我的 Java 程序中的 linux 工具那样的功能。为此,我选择了rsync4j 库。
使用他们的文档,我编写了以下程序:
在片段中,在本地机器中,文件a.txt
从一个位置复制到另一个位置。这完美地工作。当我运行它时,该文件被成功复制,这是输出:
但我需要将本地目录与位于远程主机/机器上的目录同步。当我尝试使用rsync
来自终端的简单命令执行此操作时,使用以下命令
它就像一个魅力。a.png
被复制到指定路径的本地机器,尽管首先询问远程机器的密码。
但是当我使用上面的 Java 程序执行相同的操作时,问题是通过将第 11 行和第 12 行替换为:
Started
在控制台中打印后程序卡住了。既不会引发异常,程序也不会继续执行。
问题是我该如何解决这个问题?
arrays - List files that satisfies Rsync Filter
Given a rsync filter file that looks something like this, is there a way to list all files in the directory that satisfy the filter?
Is there a way to check if a specific path string satisfies the filter? For instance, the input path string could be /var/lib/hello/samba/file1 or /var/lib/world/dir1 or /var/lib/world/file2