I am trying to sync a local folder to a remote server using a non standard port and my rsync command is as follows:
rsync -avz ~/Research/Folder1/folder2 -e "ssh -p 3345" email@example.com:/home/reusr/folder1/folder2
I am getting the following errors:
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=3.1.3]
and when I run
rsync --version I get
rsync version 3.1.3 protocol version 31
I am not sure why the
command not found or the subsequent errors are happening.
I am using OSX Maojave as my local machine and a Debian server as my remote machine.