简体   繁体   English

lsyncd不会在接收方删除文件

[英]lsyncd does not delete files at the reciever side

I have successfully gotten lsyncd to work between two RHEL servers. 我已经成功地使lsyncd在两个RHEL服务器之间工作。 Everything works great with 1 single exception. 一切正常,只有一个例外。

My expectation that is confirmed by documentation is that if the file doesn't exist on the destination, it will be deleted. 我的期望得到了文档的确认,即如果目标文件不存在,该文件将被删除。 What is happening is that the only time files that exist on the destination and not in the source are deleted is if I restart the lsyncd service. 发生的情况是,只有在我重新启动lsyncd服务时,才会删除目标上而不是源上存在的文件。 Is that an expected behavior, or am I missing something? 这是预期的行为,还是我缺少了什么?

This is the designed behavior. 这是设计的行为。

Lsyncd is coded to keep the destination synchronous to the source assuming nobody else messes around with the destination. 对Lsyncd进行编码,以使目标与源保持同步,前提是没有其他人弄乱目标。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM