LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-13-2009, 11:14 AM   #1
uhcafigdc
Member
 
Registered: Oct 2008
Distribution: Debian Lenny
Posts: 39

Rep: Reputation: 15
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"
 
Old 03-13-2009, 11:41 AM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
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/
 
Old 03-13-2009, 11:44 AM   #3
uhcafigdc
Member
 
Registered: Oct 2008
Distribution: Debian Lenny
Posts: 39

Original Poster
Rep: Reputation: 15
Why is the -e option separate from the other rsync options?
 
Old 03-13-2009, 11:59 AM   #4
TBC Cosmo
Member
 
Registered: Feb 2004
Location: NY
Distribution: Fedora 10, CentOS 5.4, Debian 5 Sparc64
Posts: 356

Rep: Reputation: 43
Quote:
Originally Posted by uhcafigdc View Post
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
rsync with ssh mahmoud Linux - Security 4 02-20-2008 11:16 AM
Rsync server vs rsync over ssh humbletech99 Linux - Networking 1 10-18-2006 12:10 PM
rsync over ssh mattsoftnet Linux - Software 2 06-02-2006 01:55 PM
Rsync vs ssh satimis Linux - Software 7 04-04-2004 06:58 AM
Rsync and SSH Phaethar Linux - Software 3 03-22-2004 03:18 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:34 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration