1833869 Members
1587 Online
110063 Solutions
New Discussion

RSYNC

 
Nisar Ahmad
Regular Advisor

RSYNC

Hi There

I can RSYNC from one file system to another on a same server but can not do from server to another server. It give following error:

borpru70:root:/usr/local/bin> ./rsync -av /bor/ovsdp/ftp/nis bordcu70:/bor/o>
Password:
sh: rsync: not found.
rsync: connection unexpectedly closed (0 bytes received so far) [sender]
rsync error: remote command not found (code 127) at io.c(463) [sender=2.6.8]

Any clue please ?

Thanks in advance

Nisar
7 REPLIES 7
Patrick Wallek
Honored Contributor

Re: RSYNC

Do you have rsync installed on the other server? If not, you need it there.

If it is installed, you may need to use the rsync option to tell it WHERE it is installed on the remote machine.

Last, the more recent versions of rsync use SSH as their default protocol. So make sure you have SSH installed on both machines and have exchanged keys so that you don't need a password to ssh between the machines.
Nisar Ahmad
Regular Advisor

Re: RSYNC

Hi Patrick

Yes, I have installed RSYNC on both servers. The version is HP-UX 11.11 and I am not sure how can I check if SSH is there. I tried "swlist |grep -i ssh" but nothing showed up.

Could you explain bit more how I avoid not supplying the password ?

Thanks a lot

Nisar
Eng Hwa,Tan
Occasional Visitor

Re: RSYNC

is "rysnc" in the $PATH of "bordcu70"?
seems like a path problem in the default profile.
Nisar Ahmad
Regular Advisor

Re: RSYNC

Hi Eng

I think it is not a path issue. Loook at this:
which rsync
/usr/local/bin/rsync
BORDCU70:root:/tmp/patches> echo $PATH "/usr/local/bin"
/usr/sbin:/usr/bin:/usr/ccs/bin:/usr/contrib/bin:/opt/hparray/bin:/opt/nettladm/
bin:/opt/upgrade/bin:/opt/fcms/bin:/opt/pd/bin:/usr/bin/X11:/usr/contrib/bin/X11
:/opt/resmon/bin:/opt/perf/bin:/opt/prm/bin:/opt/gnome/bin:/opt/ignite/bin:/opt/
mozilla:/opt/wbem/bin:/opt/wbem/sbin:/opt/hpsmh/bin:/opt/perl/bin:/opt/ssh/bin:/
opt/gwlm/bin:/usr/sbin/diag/contrib:/opt/graphics/common/bin:/opt/omni/bin:/opt/
OV/bin/OpC:/opt/OV/bin:/opt/soex/bin:/usr/local/bin:/sbin:/home/root /usr/local/
bin
Eng Hwa,Tan
Occasional Visitor

Re: RSYNC

hi
rsync host command has a more restrictive environment than a interactive shell (which is what u have shown).

not sure which version of rsync u are using but u can try adding this parameter:
--rsync-path=/usr/local/bin/rsync to your rsync command.
IT_2007
Honored Contributor

Re: RSYNC

PATH for rsync on remote machine isn't exist. Add it in the user's PATH on remote machine.
Nisar Ahmad
Regular Advisor

Re: RSYNC

Hi IT 2007

How we set user's PATH ?

Nisar