Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

能否实现rsync增量上传呢? #10

Closed
taolive opened this issue Jul 2, 2022 · 3 comments
Closed

能否实现rsync增量上传呢? #10

taolive opened this issue Jul 2, 2022 · 3 comments

Comments

@taolive
Copy link

taolive commented Jul 2, 2022

能否实现rsync命令的增量上传呢?

@lonnywong
Copy link
Member

理论上是可行的,传文件内容之前先判断一下文件是否存在,若存在的则再看 md5 是否一致,md5 也一致就可以跳过这个文件。

我后面有空时实现一下。

@lonnywong
Copy link
Member

计划:当使用 -y 覆盖上传或下载时,新版本自动切换到增量传输的模式,跳过前面文件内容一致的部分,追加剩余的文件内容。
如果上一次传输过程中发生了中断,再一次使用 -y 选项传输时,则类似于断点续传的功能。
如果 -y 发现要传的文件完全一致,则校验 md5 一致就直接完成。

@lonnywong
Copy link
Member

v1.1.4 已实现类似 rsync 的效果。

如果发生中断,或者传完后文件有修改,再使用 trz -y 上传,或者使用 tsz -y xxx 下载, 将会快速跳过前面一致的部分,从不一致的位置开始断点续传。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants