ソースサーバー(a)からミラー(b)にディレクトリをミラーリングするようにrsyncをセットアップしました。ソースにある新しいファイルを送信するようになりましたが、ソースからファイルを削除しても削除されません。
以下は、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 を削除していることを示していますが、決してそれを実行することはありません。どんな助けでも大歓迎です。