LMLPHP后院

rsync 中断后再次同步不一致技术

maybe yes 发表于 2021-12-15 16:01

前一阵子发现了这个问题,同步完成后文件大小一致,但是指纹不同,导致文件其实是错误被损坏的状态,这也让我重新认识了 rsync,可能其内部机制导致它只能保证本次同步的正确性或者它根本就不保证数据一致!

-c 或者 --cc=md5

--checksum-choice=STR, --cc=STR
This option overrides the checksum algorithms. If one algorithm name is specified, it is used for both the transfer checksums and (assuming --checksum is specified) the pre-transfer checksums. If two comma-separated names are supplied, the first name affects the transfer checksums, and the second name affects the pre-transfer checksums (-c).

The checksum options that you may be able to use are:

auto (the default automatic choice)
xxh128
xxh3
xxh64 (aka xxhash)
md5
md4
none

我后来以为是这个问题,加了 -c 参数仍然是不行!

最近看到一个教程很有意思:

多看注意事项,多用脑袋思考。
多看注意事项,多用脑袋思考。
多看注意事项,多用脑袋思考。

我才意识到,原来隐私模式是只能打开一个网页,当你在隐私模式下开多个网页,也不算完全隐私了!

2024-04-20 16:51:13 1713603073 0.025681