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다른 서버에 복사 한 scp다음 PROGRAM이 업로드된 바이너리에 대한 경로인 지시어 rsync와 함께 사용할 수 있습니다 .--rsync-path=PROGRAMrsync

예를 들어:

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

관련 정보