LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   rsync with ssh (https://www.linuxquestions.org/questions/linux-software-2/rsync-with-ssh-711376/)

uhcafigdc 03-13-2009 11:14 AM

rsync with ssh
 
I set up the keys so that I can log in via ssh without having to enter a password, so that I can do a backup from another machine. It works fine when I do
Code:

ssh 192.168.1.13
but, when I do
Code:

rsync -aruzvn --delete /home/files/ ssh://192.168.1.13//home/files/
I get this error "ssh: connect to host ssh port 22: No route to host"

MensaWater 03-13-2009 11:41 AM

I've not seen that syntax before.

The rsync man page has this example:
rsync -az -e ssh --delete ~ftp/pub/samba nimbus:"~ftp/pub/tridge"

I've never seen syntax the way you have it.

I'd suggest:

rsync -aruzvn -e ssh --delete /home/files/ 192.168.1.13:/home/files/

uhcafigdc 03-13-2009 11:44 AM

Why is the -e option separate from the other rsync options?

TBC Cosmo 03-13-2009 11:59 AM

Quote:

Originally Posted by uhcafigdc (Post 3474451)
Why is the -e option separate from the other rsync options?

Specifies remote shell to use, as in -e ssh. So it's not grouped with the other rsync options. Though from the man page, modern rsync uses ssh by default, so no need for that in most cases.


All times are GMT -5. The time now is 10:18 AM.