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

syncupupload的行为似乎反了?文件对比问题 #706

Open
citrusreticulata opened this issue Nov 12, 2024 · 1 comment
Open

syncupupload的行为似乎反了?文件对比问题 #706

citrusreticulata opened this issue Nov 12, 2024 · 1 comment

Comments

@citrusreticulata
Copy link

citrusreticulata commented Nov 12, 2024

在使用syncup命令时,我发现总是会删除远端的文件,然后上传新的文件。在命令行输出上,有这样的提示:

Deletion request '****' OK

具体使用的命令如下:

python3 -m bypy syncup "$archive_parent_dir" "$remote_dir"

于是我翻了一下过往的issues,发现似乎是因为百度云盘返回的api有问题,导致md5码比对总是出错,导致总是认为文件过期了于是删掉重新同步...

好吧,于是我修改了我的代码,改用upload命令,只上传最新的文件,然后定期删除云盘多余的备份文件——
但就在这时——奇怪的事情发生了!!!

<I> [22:02:56] Remote file '/apps/bypy/backup-archive/archive_20241112_220239.zip' exists and is the same, skip uploading
[====================] 100% (46.8MB/46.8MB) ETA:  (462kB/s, 1m43s gone) Combining the following MD5 slices:
2096fb77f0223986dc87d8b32edfdf2b
a9570673c66a4d0bd81090e2eab88053
741485fe1f7960e30ddc64506773e492
<I> [22:04:41] Remote file '/apps/bypy/backup-archive/raedme.txt' exists and is the same, skip uploading
同步完毕.

具体使用的命令如下:

python3 -m bypy upload"$archive_parent_dir" "$remote_dir"

那就是upload命令完美的识别了重复文件,并且有重复文件就不上传!!!这不是syncup的作用吗?
真的是太怪了,莫非是作者大大不小心在某个地方搞混了这俩命令;或者syncup命令中文件检查机制和upload命令中的不一致?

@citrusreticulata
Copy link
Author

顺带一提,我使用的bypy版本是:bypy v1.8.5

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

1 participant