Whenever we want to ensure/apply backup policies rsync is a tool that is widely used to ensure backup of files from one system to another. It is typically used to synchronize folders/files between two different systems. To ensure its security it uses SSH to connect. I have also setup multiple jobs to sync folders to keep a backup from both Windows based system and Linux. In windows I have used software “Cygwin” so that I can use rsync to keep backup of files from Windows based environment.
Recently I encountered following errors while setting up a new environment:
bash: rsync: command not found
rsync: connection unexpectedly closed (0 bytes received so far) [sender]
rsync error : error in rsync protocol data stream (code 12) at io.c(226) [sender=18.104.22.168]
I tried looking up in the blogs and there were solution based on different UNIX/Linux distros however my issue was simple. Attached is the screenshot of error
Solution was that I had installed rsync in the windows system (Source) but at the remote system (Linux Based) rsync was not installed.
So installing rsync in remote system solved my issue.
yum install rsync -y