LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 12-06-2005, 08:14 AM   #1
veyden
LQ Newbie
 
Registered: Dec 2005
Distribution: RedHat
Posts: 14

Rep: Reputation: 0
Unhappy rcp and rsync not working at all




I am trying to backup a full folder from on server to another. The server i am trying to back up is running "redhat 7.2 Alpha" on a COMPAQ ALPHASERVER DS10. The server i am trying to back up onto is running "redhat 9" on a IBM Netfinity 5500. I have made a self back up on the ALPHA and just try to transfer that as i have never tryed rsyncd befor so not realy using the proper folders as dont know how to do it.

I can sftp connect them and can move files over but that is a mad way to do it as file by file and ther is millions of files on a lot of folders.

When i try to rsync them by doing this from the 5500 and i get this...
--------------------------------------------------------------
# rsync -ab /var/ComGate/ root@192.168.1.2:/var/ComGate
192.168.1.2: Connection refused
rsync: connection unexpectedly closed (0 bytes read so far)
rsync error: error in rsync protocol data stream (code 12) at io.c(150)
--------------------------------------------------------------

When i try to rsync them by doing this from the ALPHA and i get this...
--------------------------------------------------------------
# rsync -ab /var/ComGate/ root@192.168.1.9:/var/ComGate/
192.168.1.9: Connection refused
unexpected EOF in read timeout
--------------------------------------------------------------

Running as root and as sh

so please help
 
Old 12-06-2005, 08:18 AM   #2
veyden
LQ Newbie
 
Registered: Dec 2005
Distribution: RedHat
Posts: 14

Original Poster
Rep: Reputation: 0
forgot to tell about the rcp

That is just comming up refused all the time.
 
Old 12-06-2005, 08:22 AM   #3
amitsharma_26
Member
 
Registered: Sep 2005
Location: New delhi
Distribution: RHEL 3.0/4.0
Posts: 777

Rep: Reputation: 31
You need to setup RSYNC server on any 1 of those two machines to get this going.

You can read my RSYNC-tutorial @ http://www.amitsharma.linuxworld.com/how_to_rsync.htm . I've explained two sample working configurations also over there. Go through that & revert back to me if you find any problem.

And in your case you are getting connection refused because RSYNC is not running as a daemon mode.

You can run it as #rsync --daemon
 
Old 12-06-2005, 08:28 AM   #4
veyden
LQ Newbie
 
Registered: Dec 2005
Distribution: RedHat
Posts: 14

Original Poster
Rep: Reputation: 0
Thumbs up Cheers

Thanks im gonna run through all of that and hope it gets it working so a big thankyou
 
Old 12-12-2005, 05:31 AM   #5
veyden
LQ Newbie
 
Registered: Dec 2005
Distribution: RedHat
Posts: 14

Original Poster
Rep: Reputation: 0
Smile It works but......

It works fine but just wee things that i need to iron out nothing i need help with i hope so a big thankyou and might be back if i cant get the other thing to fully work as it still denys access timesout when server to server but the servers work to themselfs copying. Cheers
 
Old 12-12-2005, 06:45 AM   #6
veyden
LQ Newbie
 
Registered: Dec 2005
Distribution: RedHat
Posts: 14

Original Poster
Rep: Reputation: 0
Question What i had still cant get it going accross servers

from the remote server i keep getting the EOF timeout even though on the RSYNC i have set it up for it to have access and anybody to get access. anyhelp please

Last edited by veyden; 12-12-2005 at 06:47 AM.
 
Old 12-12-2005, 07:49 AM   #7
amitsharma_26
Member
 
Registered: Sep 2005
Location: New delhi
Distribution: RHEL 3.0/4.0
Posts: 777

Rep: Reputation: 31
Quote:
Originally Posted by veyden
from the remote server i keep getting the EOF timeout even though on the RSYNC i have set it up for it to have access and anybody to get access. anyhelp please
Post your rsyncd.conf & rsync command or script you are running.

..amit..
 
Old 12-12-2005, 08:09 AM   #8
veyden
LQ Newbie
 
Registered: Dec 2005
Distribution: RedHat
Posts: 14

Original Poster
Rep: Reputation: 0
Question

This is the non # code on the RSYNC server 192.168.1.9

auth users =root
auth users = superman
motd = /etc/motd
max connections = 25
syslog facility = local3
[mail]
path = /var/CommuniGate/
comment = /var/CommuniGate
read only = no
list = yes
uid = nobody
gid = nobody
host allow = 192.168.1.


What i am typing in to run it from the client computer 192.168.1.2

rsync -avz /var/CommuniGate/ 192.168.1.9:/var/CommuniGate/

and i get back comming up

192.168.1.9 Connection refused
unexpected EOF in read_timeout


When i run it from the RSYNC computer

rsync -avz 192.168.1.2:/var/CommuniGate/ /var/CommuniGate/

I have tryed with the root@IP and the same happens and superman@IP the same.

I am butting my head off the wall

so please help
 
Old 12-12-2005, 08:14 AM   #9
veyden
LQ Newbie
 
Registered: Dec 2005
Distribution: RedHat
Posts: 14

Original Poster
Rep: Reputation: 0
Unhappy

Oh with the

rsync -avz 192.168.1.2:/var/CommuniGate/ /var/CommuniGate/

i get back

192.168.1.2: Connection refused
rsync: connection unexpectedly closed (0 bytes read so far)
rsync error: error in rsync protocol data stream (code 12) at io.c(150)


 
Old 12-12-2005, 08:48 AM   #10
amitsharma_26
Member
 
Registered: Sep 2005
Location: New delhi
Distribution: RHEL 3.0/4.0
Posts: 777

Rep: Reputation: 31
Use this configuration :

motd = /etc/motd
max connections = 25
syslog facility = local3
[mail]
path = /var/CommuniGate/
comment = /var/CommuniGate
auth users =root
read only = no
list = yes
uid = root
gid = root
host allow = 192.168.1.


& now on client side run
rsync -avz root@192.168.1.9::mail/* /var/CommuniGate/

Prior to running the above command, on your 192.168.1.9 box, Run rsync --daemon command.

..amit..
 
Old 12-12-2005, 09:14 AM   #11
veyden
LQ Newbie
 
Registered: Dec 2005
Distribution: RedHat
Posts: 14

Original Poster
Rep: Reputation: 0
Thumbs down

cool a big step further but...


It ask's for a password...
I keep getting the @ERROR: auth failed on module mail

And yes i am putting in the right password
 
Old 12-12-2005, 09:21 AM   #12
amitsharma_26
Member
 
Registered: Sep 2005
Location: New delhi
Distribution: RHEL 3.0/4.0
Posts: 777

Rep: Reputation: 31
Anyhow we didnt mentioned password in that rsync configuration. lol

add this line under [mail] meta-service.
secrets file = /etc/rsync.secrets

& then create a file /etc/rsync.secrets
& with editor type root:<root-pass>
& save & close.

chmod 600 /etc/rsync.secrets

Now run the rsync command again.

..amit..
 
Old 12-12-2005, 09:44 AM   #13
veyden
LQ Newbie
 
Registered: Dec 2005
Distribution: RedHat
Posts: 14

Original Poster
Rep: Reputation: 0
Unhappy

Well did that and still doing it... it's o.k. i know what you are thinking I HATE THE
 
Old 12-12-2005, 09:55 AM   #14
amitsharma_26
Member
 
Registered: Sep 2005
Location: New delhi
Distribution: RHEL 3.0/4.0
Posts: 777

Rep: Reputation: 31
Quote:
Originally Posted by veyden
Well did that and still doing it... it's o.k. i know what you are thinking I HATE THE
No i love them.
After all few days back i was a too.
 
Old 12-12-2005, 10:04 AM   #15
veyden
LQ Newbie
 
Registered: Dec 2005
Distribution: RedHat
Posts: 14

Original Poster
Rep: Reputation: 0
Smile

OH so it's a 1and a half year old teaching a 1 year old

Well what i will do i will do a bit more pissing a round with what you gave me and hope i can get it but if not you will prob see some more postings here
At least its asking for a password now with the help from you insted of what i got it to just saying "F**k off im a server holding the mail... im not saying it on that server incase i go down"

Cheers and if you do thing of anyway it's not working PLEASE just post it here. ill try and up on all of it big time. ill just start
 
  


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 & scponlyc shell: not working hamish Linux - Software 3 05-28-2005 07:15 AM
Windows Rsync Upload to Linux Rsync - permissions inspleak Linux - Software 0 10-12-2004 02:49 PM
Can't use rcp ust Linux - Software 5 08-31-2004 08:11 AM
rsync password-file not working kmoffat Slackware 6 08-02-2004 10:41 PM
Allow rcp Eddie9 Linux - General 0 08-20-2002 02:02 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 01:03 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