Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
| 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.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
08-01-2012, 06:12 AM
|
#1
|
|
Member
Registered: Apr 2012
Posts: 73
Rep: 
|
rsync command does not work
rsync -avz /home/websites/ root@172.18.224.135::root/test/
rsync: failed to connect to 172.18.224.135: Connection timed out (110)
rsync error: error in socket IO (code 10) at clientserver.c(124) [sender=3.0.6]
Is the command correct?
please help i am new to linux
|
|
|
|
08-01-2012, 06:16 AM
|
#2
|
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 42,823
|
well that suggests you don't have an rsync server listening at the other end. Do you believe you have? These days it's more common to run rsync over SSH, removing the need for a formal rsync service listening at the other end, and getting a more secure encrypted connection with it.
|
|
|
1 members found this post helpful.
|
08-01-2012, 06:19 AM
|
#3
|
|
Member
Registered: Apr 2012
Posts: 73
Original Poster
Rep: 
|
what command should i use then
please help i am new to linux
|
|
|
|
08-01-2012, 06:21 AM
|
#4
|
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 42,823
|
I can't tell you that, you need to already know what you actually want to achieve with your own systems and describe it effectively. We know nothing about the systems involved, you do.
|
|
|
1 members found this post helpful.
|
08-01-2012, 06:22 AM
|
#5
|
|
Member
Registered: Apr 2012
Posts: 73
Original Poster
Rep: 
|
Quote:
Originally Posted by acid_kewpie
well that suggests you don't have an rsync server listening at the other end. Do you believe you have? These days it's more common to run rsync over SSH, removing the need for a formal rsync service listening at the other end, and getting a more secure encrypted connection with it.
|
what command can i use instead acid_kewpie.please help..
|
|
|
|
08-01-2012, 06:25 AM
|
#6
|
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 42,823
|
As I just said, I don't know, as I don't know what you want to achieve and what resources you have to work with. Do you have ssh access to the peer server? You can try just adding "-e ssh" to the command as per the manpage, but there are so many unknowns for us here...
|
|
|
1 members found this post helpful.
|
08-01-2012, 06:25 AM
|
#7
|
|
Member
Registered: Apr 2012
Posts: 73
Original Poster
Rep: 
|
Quote:
Originally Posted by acid_kewpie
I can't tell you that, you need to already know what you actually want to achieve with your own systems and describe it effectively. We know nothing about the systems involved, you do.
|
i need to copy a whole folder of websites to another server .the exact same thing with permissions and all subdirectories.i am trying to rsync the folder to the other serther using the command
rsync -avz /home/websites/ root@172.18.224.135::root/test/
rsync: failed to connect to 172.18.224.135: Connection timed out (110)
rsync error: error in socket IO (code 10) at clientserver.c(124) [sender=3.0.6]
but i get the following error
please help
|
|
|
|
08-01-2012, 06:26 AM
|
#8
|
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 42,823
|
I presumed that "::root/test/" was a typo... do you not mean ":/root/test/" ?
|
|
|
1 members found this post helpful.
|
08-01-2012, 06:28 AM
|
#9
|
|
Member
Registered: Apr 2012
Posts: 73
Original Poster
Rep: 
|
Quote:
Originally Posted by acid_kewpie
I presumed that "::root/test/" was a typo... do you not mean ":/root/test/" ?
|
rsync -avz /home/sites_web/ root@172.18.224.135:/root/test/
i am getting the following errors
rsync: Failed to exec ssh: No such file or directory (2)
rsync error: error in IPC code (code 14) at pipe.c(84) [sender=3.0.6]
rsync: connection unexpectedly closed (0 bytes received so far) [sender]
rsync error: error in rsync protocol data stream (code 12) at io.c(600) [sender=3.0.6]
please help
|
|
|
|
08-01-2012, 06:30 AM
|
#10
|
|
Member
Registered: Apr 2012
Posts: 73
Original Poster
Rep: 
|
rsync -avz /home/sites_web/ root@172.18.224.135:/root/test/
on the server 172.18.224.135 i have created the folder /root/test
but still i get the errors
|
|
|
|
08-01-2012, 06:33 AM
|
#11
|
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 42,823
|
well you've still not got an rsync server to connect to, so that's not surprising. Do you think you have one or not? If you do, fix it, if not, don't use rsync directly.
|
|
|
1 members found this post helpful.
|
08-01-2012, 06:36 AM
|
#12
|
|
Member
Registered: Apr 2012
Posts: 73
Original Poster
Rep: 
|
Quote:
Originally Posted by acid_kewpie
well you've still not got an rsync server to connect to, so that's not surprising. Do you think you have one or not? If you do, fix it, if not, don't use rsync directly.
|
how to enable rsync on the server
i am using CentOS
please help
|
|
|
|
08-01-2012, 06:43 AM
|
#13
|
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 42,823
|
As above, we don't know what you're working with. also as above, you would generally do this over ssh, there are many many many guides online for using rsync over ssh if you have a search. Often it's just a case of adding "-e ssh" to the command though (also, as above)
|
|
|
1 members found this post helpful.
|
08-01-2012, 06:48 AM
|
#14
|
|
Member
Registered: Apr 2012
Posts: 73
Original Poster
Rep: 
|
i got the solution thanks for helping
i had to install openssh-clients
for rsync to work
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 05:34 PM.
|
|
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
|
|