I have created an SSH key shared between my Synology NAS and the Debian cloud server. I created this script to synchronize two folders, but it doesn't seem to work.
Command:
rsync -av --delete -e "ssh -i /home/root/.ssh/id_rsa -p 22" /var/www/vhosts/mysite.com/httpdocs/ [email protected]::NetBackup/
Error:
rsync: change_dir "/var/www/vhosts/mysite.com/httpdocs/ [email protected]::/NetBackup" failed: No such file or directory (2)