mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-05-26 16:29:11 +02:00
rsync是否需要加上--checksum参数?
#45
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @shelken on GitHub (Jul 27, 2024).
https://github.com/ryan4yin/nix-config/blob/3dc7ec1fe8033576a02ca15bdb05110a607d8619/utils.nu#L72
相同名字,且修改日期相同时(size不同)。发现rsync并没有正常传输。(可以尝试下,并用sha256sum检查),两边文件的sha256sum值不一样。
加入checksum参数后,两边重新sha256sum后,相同了
@ryan4yin commented on GitHub (Jul 29, 2024):
这个问题我没复现出来,验证了两边 sha256sum 是一致的。不过加个 checksum 倒没啥问题
@ryan4yin commented on GitHub (Jul 29, 2024):
Done https://github.com/ryan4yin/nix-config/commit/5a6ccd8794703c62e2de9d6d077c60336168778f