rsyncがインストールされていないリモートサーバーにrsync

rsyncがインストールされていないリモートサーバーにrsync

rysncがインストールされていないリモートサーバーでrsyncは可能ですか?

rsyncがインストールされていないリモートサーバーでrsyncを試みましたが、次のエラーが発生しました。

bash: rsync: command not found
rsync: connection unexpectedly closed (0 bytes received so far) [receiver]
rsync error: remote command not found (code 127) at io.c(463) [receiver=2.6.8]

ベストアンサー1

ローカルバイナリを使用してrsync別のサーバーにコピーし、scpPROGRAMをアップロードされたバイナリへのパスでrsyncあるディレクティブで使用できます。--rsync-path=PROGRAMrsync

たとえば、

which rsync
/usr/bin/rsync
scp /usr/bin/rsync user@remote:~/rsync
rsync -a --rsync-path=~/rsync source dest 

おすすめ記事