Rsync Linux Error

6 posts / 0 new
Last post
Anonymous
Rsync Linux Error

I'm getting the follow set of errors when trying to run rsync through ssh on a Linux box (not even sure what flavor of Linux it is -Linux guru I am not...) First set of lines is my script. Second set is the error message. I have this working the same way on other Linux servers, but cant' get it working on this one. Any insight would be appreciated. Thanks!!!

ssh -f -i /filename svcwrsync@x.x.x.x -N -L 9001:127.0.0.1:873        
rsync -arvz /folder rsync://SvcwRsync@localhost:9001/folder

rcmd: getaddrinfo: Name or service not known
rsync: connection unexpectedly closed (0 bytes read so far)
rsync error: error in rsync protocol data stream (code 12) at io.c (150)

 

itefix
Offline
Last seen: 1 hour 11 min ago
Joined: 01.05.2008 - 21:33
Re: Rsync Linux Error

Have you tried 127.0.0.1 instead of localhost ?

br1c
Re: Rsync Linux Error

Thanks for the suggestion, Tev. I tried that, but no luck. I have another system I'm trying to install this morning and I'm getting something similar, but slightly different. Script is the same. Error below. I tried 127.0.0.1 on this one too. Thanks again.

rcmd: getaddrinfo: temporary failure in name resolution

itefix
Offline
Last seen: 1 hour 11 min ago
Joined: 01.05.2008 - 21:33
Re: Rsync Linux Error

Seems that you have some DNS resolution problems. Rsync requires full DNS functionality.

br1c
Re: Rsync Linux Error

Could be, although standard name resolution seems to work. The only other thing I noticed is that IPv6 seems to be enabled on these systems, at least according to whats in the hosts file. Don't know if that's affecting something or not. I can get rsync to work without ssh, so the workaround I came up with is to backup to a local system insecurely, then backup to my remote site using SSH from there. Not ideal, but at least I'm getting the job done.

br1c
Re: Rsync Linux Error

I can't believe I didn't catch this to begin with, but these errors were due to an old version of rsync being installed on the Linux box.

Topic locked