LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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

Reply
 
LinkBack Search this Thread
Old 08-01-2012, 06:12 AM   #1
figure20012
Member
 
Registered: Apr 2012
Posts: 75

Rep: Reputation: Disabled
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
 
Old 08-01-2012, 06:16 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,345

Rep: Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945
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.
Old 08-01-2012, 06:19 AM   #3
figure20012
Member
 
Registered: Apr 2012
Posts: 75

Original Poster
Rep: Reputation: Disabled
what command should i use then
please help i am new to linux
 
Old 08-01-2012, 06:21 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,345

Rep: Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945
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.
Old 08-01-2012, 06:22 AM   #5
figure20012
Member
 
Registered: Apr 2012
Posts: 75

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by acid_kewpie View Post
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..
 
Old 08-01-2012, 06:25 AM   #6
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,345

Rep: Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945
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.
Old 08-01-2012, 06:25 AM   #7
figure20012
Member
 
Registered: Apr 2012
Posts: 75

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by acid_kewpie View Post
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
 
Old 08-01-2012, 06:26 AM   #8
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,345

Rep: Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945
I presumed that "::root/test/" was a typo... do you not mean ":/root/test/" ?
 
1 members found this post helpful.
Old 08-01-2012, 06:28 AM   #9
figure20012
Member
 
Registered: Apr 2012
Posts: 75

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by acid_kewpie View Post
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
 
Old 08-01-2012, 06:30 AM   #10
figure20012
Member
 
Registered: Apr 2012
Posts: 75

Original Poster
Rep: Reputation: Disabled
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
 
Old 08-01-2012, 06:33 AM   #11
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,345

Rep: Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945
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.
Old 08-01-2012, 06:36 AM   #12
figure20012
Member
 
Registered: Apr 2012
Posts: 75

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by acid_kewpie View Post
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
 
Old 08-01-2012, 06:43 AM   #13
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,345

Rep: Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945
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.
Old 08-01-2012, 06:48 AM   #14
figure20012
Member
 
Registered: Apr 2012
Posts: 75

Original Poster
Rep: Reputation: Disabled
i got the solution thanks for helping
i had to install openssh-clients
for rsync to work
 
  


Reply

Tags
rsync


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Help with rsync command rjo98 Linux - Newbie 3 10-20-2011 02:44 AM
rsync problems, can you look at my command? - Rsync gurus. Spuddy Linux - Software 4 09-21-2010 10:25 AM
[SOLVED] rsync command windstory Linux - Newbie 2 08-10-2010 01:44 AM
Cannot get rsync to work mantonr Linux - Server 7 08-08-2008 05:28 PM
How does rsync work? obelxi Linux - General 6 03-07-2005 01:49 AM


All times are GMT -5. The time now is 11:16 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration