Ich bin ziemlich verwirrt darüber, warum rsync das Flag --rsync-path benötigt, selbst wenn sich remote rsync im Pfad befindet.
Erwägen:
$ rsync -avze 'ssh -p 22' --delete public/ pmatos@domain.com:~/public_html
bash: /usr/local/bin/rsync: No such file or directory
rsync: connection unexpectedly closed (0 bytes received so far) [sender]
rsync error: remote command not found (code 127) at io.c(601) [sender=3.0.7]
dann habe ich versucht --rsync-path hinzuzufügen
$ rsync -avze 'ssh -p 22' --rsync-path=/usr/bin/rsync --delete public/ pmatos@domain.com:~/public_html
sending incremental file list
...
Der erste rsync war also nicht erfolgreich, weil er in / usr / local / bin nach rsync suchte, aber sobald ich den offensichtlichen Pfad für rsync mit --rsync-path übergebe, funktioniert es.
Warum ist das? (Diese Befehlszeile wird von Rake Deploy in Octopress ausgegeben.)
$ cat ~/.bashrc | grep PATHgibt nichts zurück.
which rsyncwas bekommen Sie?
$ ssh pmatos@domain.com which rsynckehrt zurück/usr/bin/rsync
aliasmit rsync --rsync-path(oder einem anderen lokalen Wrapper) verbunden?