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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
03-13-2009, 11:14 AM
|
#1
|
Member
Registered: Oct 2008
Distribution: Debian Lenny
Posts: 39
Rep:
|
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 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"
|
|
|
03-13-2009, 11:41 AM
|
#2
|
LQ Guru
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
|
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/
|
|
|
03-13-2009, 11:44 AM
|
#3
|
Member
Registered: Oct 2008
Distribution: Debian Lenny
Posts: 39
Original Poster
Rep:
|
Why is the -e option separate from the other rsync options?
|
|
|
03-13-2009, 11:59 AM
|
#4
|
Member
Registered: Feb 2004
Location: NY
Distribution: Fedora 10, CentOS 5.4, Debian 5 Sparc64
Posts: 356
Rep:
|
Quote:
Originally Posted by uhcafigdc
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 12:05 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|