rsync error - error in rsync protocol data stream (code 12) at
io.c(420)
gg gg234
ggs234 at googlemail.com
Fri Dec 9 10:48:42 GMT 2005
Hi,
When i try to run rsync command from command linne it is working
fine.Belowis the command
/usr/bin/rsync --compress \
--verbose \
--rsh=ssh \
--times \
--owner \
--group \
--ignore-times \
--links \
--perms \
--recursive \
--size-only \
--delete \
--force \
--numeric-ids \
--stats \
/etc \
root at target_machine:/home/backup/thismachine/
when i try to use shell script for this
#! /bin/bash
/usr/bin/rsync --compress \
--verbose \
--rsh=ssh \
--times \
--owner \
--group \
--ignore-times \
--links \
--perms \
--recursive \
--size-only \
--delete \
--force \
--numeric-ids \
--stats \
/etc \
root at target_machine:/home/backup/thismachine/
I am getting the following error
ssh: connect to host x.x.x.x port 22: No route to host
rsync: connection unexpectedly closed (0 bytes received so far) [sender]
rsync error: error in rsync protocol data stream (code 12) at io.c(420)
this is related to ssh i believe.But when i try to use from the command
prompt it is working without any problem through ssh
Please some one help me how to fix this error in shell script.Because i want
to schedule this from cron
Thanks for your time
-------------- next part --------------
HTML attachment scrubbed and removed
More information about the rsync
mailing list