大佬教程收集整理的这篇文章主要介绍了linux – Rsync不删除,大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
我已经设置了rsync来镜像从源服务器(a)到镜像(b)的目录.我已经得到它来发送源上的新文件但是当我从源中删除文件时它不会最终删除它.
rsync -vhzrplt --stats --delete --rsh='/usr/bin/ssh -q' --exclude="core/" --exclude="cache/" /home/(a)/public_html (b):/home/(b)/public_html/
当我运行rsync时,我得到以下输出:
stdin: is not a tty
sending incremental file list
public_html/
deleting public_html/test.html
number of files: 389
number of files transferred: 0
@R_481_10586@l file size: 3.16M bytes
@R_481_10586@l transferred file size: 0 bytes
Literal data: 0 bytes
Matched data: 0 bytes
File list size: 9.25K
File list generation time: 0.001 seconds
File list transfer time: 0.000 seconds
@R_481_10586@l bytes sent: 9.33K
@R_481_10586@l bytes received: 47
sent 9.33K bytes received 47 bytes 1.25K bytes/sec
@R_481_10586@l size is 3.16M speedup is 336.81
以上是大佬教程为你收集整理的linux – Rsync不删除全部内容,希望文章能够帮你解决linux – Rsync不删除所遇到的程序开发问题。
如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。