rsync –remove-source-files的安全性如何?

我想使用rsync移动一些文件,但在删除文件之前,目标文件在目的地完好无损是至关重要的.问题是,我找不到任何信息告诉我rsync如何确定文件已正确传输:我需要它进行正确的校验和.
任何人都知道rsync是如何做到的?

解决方法

您需要通过–checksum以确保具有相同大小和文件文件.不会跳过源和目标上的时间.然后,根据 Wikipedia

The recipient splits its copy of the file into fixed-size non-overlapping chunks and computes two checksums for each chunk: the MD4 hash,and a weaker ‘rolling checksum’. (Version 30 of the protocol,released with rsync version 3.0.0,Now uses MD5 hashes rather than MD4.[14]) It sends these checksums to the sender.

相关文章

1、安装Apache。 1)执行如下命令,安装Apache服务及其扩展包...
一、先说一下用ansible批量采集机器信息的实现办法: 1、先把...
安装配置 1. 安装vsftpd 检查是否安装了vsftpd # rpm -qa | ...
如何抑制stable_secret读取关键的“net.ipv6.conf.all.stabl...
1 删除0字节文件 find -type f -size 0 -exec rm -rf {} ...
## 步骤 1:安装必要的软件包 首先,需要确保系统已安装 `dh...