I am trying to rsync var/vmail between 2 servers (all files, and folders). I have tried to get key forward to work in putty, but i havent had any luck, so i am trying to get rsync to work with my key file instead. If i run ssh with this command
ssh -i /home/ubuntu/ssh.ppk ubuntu@myserver2.com
it connects just fine but if i run rsync with the following command:
sudo rsync -rtv -e --progress "ssh -i /home/ubuntu/ssh.ppk" /var/vmail ubuntu@server2.com/var/vmail
i keep getting an error:
sending incremental file list rsync: change_dir "/home/ubuntu//ssh -i /home/ubuntu" failed: No such file or directory (2) rsync: mkdir "/home/ubuntu/ubuntu@server2.com/var/tmp/[A" failed: No such file or directory (2) rsync error: error in file IO (code 11) at main.c(674) [Receiver=3.1.0]
what am i missing?
[link][15 comments]