On Fri, May 14, 2021 at 12:31:32PM +0300, Irshad Sulaiman wrote:
> Hi
>      Originally I was trying sync usb drive with openbsd box I was getting 
> same error 
> 
> Below is eg: I have two files bar and baz in home dir and dest is destination 
> directory 
> While trying to sync I get error 
> And if I try ‘rsync’ as command I get error not found 
> Iam in 6.9 release with syspatch updated 
> 
> 
> irshad:/home/irshad/test# ls
> bar  baz  dest
> irshad:/home/irshad/test# openrsync -t  bar baz dest/
> openrsync: error: unexpected end of file
> irshad:/home/irshad/test# openrsync -t  bar baz root@192.168.1.1:bar
> root@192.168.1.1's password:
> ash: rsync: not found
> openrsync: error: unexpected end of file
> irshad:/home/irshad/test# rsync
> ksh: rsync: not found
> irshad:/home/irshad/test# uname -a
> OpenBSD openbsd.local 6.9 GENERIC.MP#473 amd64
> irshad:/home/irshad/test#
> 
Yes, this is behaviour is expected right now. Since we install openrsync
as openrsync but the --rsync-path defaults to rsync (as it should).
This is normally not an issue since the remote server most probably has
rsync installed. I also have rsync installed on most of my systems so I
did not notice this.

Right now people should use the rsync package since the openrsync is not
enough compatible to work well in all scenarios.


> > On 14-May-2021, at 12:02 PM, Claudio Jeker <cje...@diehard.n-r-g.com> wrote:
> > 
> > On Fri, May 14, 2021 at 12:44:45AM +0300, Irshad Sulaiman wrote:
> >> Hi 
> >> 
> >> I have modified error in openrsync(1) manpage in Example section isn’t
> >> that ‘openrsync -t'  instead of 'rsync -t ‘
> >> And without --rsync-path= it gives an following error 'openrsync: error:
> >> unexpected end of file’
> > 
> > I did try all three examples and they do work for me without adding
> > --rsync-path=. On which command did you get the unexpected result.
> > Can you share the exact way to reproduce this issue?
> > 
> >> Apologize if Iam wrong 
> >> 
> >> Thanks 
> >> Irshad 
> >> 
> >> 
> >> 
> >> Index: rsync.1
> >> ===================================================================
> >> RCS file: /cvs/src/usr.bin/rsync/rsync.1,v
> >> retrieving revision 1.24
> >> diff -u -p -r1.24 rsync.1
> >> --- rsync.1        31 Mar 2021 20:36:05 -0000      1.24
> >> +++ rsync.1        13 May 2021 21:25:57 -0000
> >> @@ -234,7 +234,7 @@ with the local
> >> and
> >> .Pa ../src/baz :
> >> .Pp
> >> -.Dl % rsync -t ../src/bar ../src/baz host:dest
> >> +.Dl % openrsync -t --rsync-path=openrsync  ../src/bar ../src/baz host:dest
> >> .Pp
> >> To update the out-of-date local files
> >> .Pa bar
> >> @@ -245,7 +245,7 @@ with the remote files
> >> and
> >> .Pa host:src/baz :
> >> .Pp
> >> -.Dl % rsync -t host:src/bar :src/baz \&.
> >> +.Dl % openrsync -t --rsync-path=openrsync  host:src/bar :src/baz \&.
> >> .Pp
> >> To update the out-of-date local files
> >> .Pa ../dest/bar
> >> @@ -256,7 +256,7 @@ with
> >> and
> >> .Pa baz :
> >> .Pp
> >> -.Dl % rsync -t bar baz ../dest
> >> +.Dl % openrsync -t --rsync-path=openrsync  bar baz ../dest
> >> .\" .Sh DIAGNOSTICS
> >> .Sh SEE ALSO
> >> .Xr ssh 1
> >> 
> > 
> > -- 
> > :wq Claudio
> 

-- 
:wq Claudio

Reply via email to