gpt4 book ai didi

linux - rsync不删除

转载 作者:IT王子 更新时间:2023-10-29 00:35:55 25 4
gpt4 key购买 nike

<分区>

我设置了 rsync 以将目录从源服务器 (a) 镜像到镜像 (b)。我已经让它发送源上的新文件,但是当我从源中删除文件时,它并没有最终删除它。

下面是我用来调用rsync的:

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
Total file size: 3.16M bytes
Total 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
Total bytes sent: 9.33K
Total bytes received: 47

sent 9.33K bytes received 47 bytes 1.25K bytes/sec
total size is 3.16M speedup is 336.81

如您所见,它表明它正在删除 test.html,但它永远不会删除。感谢您的帮助。

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com