[CentOS] rsync from rescue boot

Tue Jan 31 19:07:22 UTC 2012
nux at li.nux.ro <nux at li.nux.ro>

Les Mikesell writes:

> On Tue, Jan 31, 2012 at 12:29 PM,  <nux at li.nux.ro> wrote:
>> Les Mikesell writes:
>>
>>> If I boot a 5.7 install disk with 'linux rescue selinux=0', let it
>>> start the network and detect the installed system, ssh seems to work,
>>> but rsync fails with "rsync:  connection unexpectedly closed (0 bytes
>>> received so far) [receiver]).   Shouldn't it work as long as the
>>> underlying ssh connection works?  It doesn't prompt for the ssh
>>> password and using -essh doesn't change it.
>>>
> 
>>
>> What commands are you using exactly? To or from the rescued host? Also, are
>> you using ssh non-standard ports?
> 
> It is from the rescued host - basically a:
> rsync -essh otherhost:/path .
> 
> ssh otherhost 'cd /path && tar -cf - ' | tar -xvf -
> seems to be working, so it is not related to network connectivity or ssh.

That's odd, try rsync -e 'ssh -v' to get some more details.
Also you will want to use some parameters to rsync (like -av or maybe even 
-z for compression etc).

--
Nux!
www.nux.ro