Re: openrsync manpage error
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 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.131 Mar 2021 20:36:05 - 1.24 > >> +++ rsync.113 May 2021 21:25:57 - > >> @@ -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
Re: openrsync manpage error
On May 16 13:30:00, falsif...@falsifian.org wrote: > On Fri, May 14, 2021 at 11:02:23AM +0200, Claudio Jeker 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? > > Did you have rsync installed on the remote machine? > > My understanding was that by default, openrsync expects "rsync" to be > installed on the destination machine. Probably "rsync" can just be a > symlink to openrsync; I'm not sure. > > It would be nice if the openrsync man page described how things are > expected to work. Something like the following (I don't know if it's > correct): > > By default, openrsync expects the command "rsync" to be available > on the remote machine. You can override it to use openrsync with > --rsync-path=/usr/bin/openrsync. It is also sufficient to make > rsync an alias for openrsync on the remote machine. Currently, the man page says --rsync-path=program Run program on the remote host instead of the default rsync. which to me seems to say the same thing, without the verbiage and the symlinks/alias confusion.
Re: openrsync manpage error
On Fri, May 14, 2021 at 11:02:23AM +0200, Claudio Jeker 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? Did you have rsync installed on the remote machine? My understanding was that by default, openrsync expects "rsync" to be installed on the destination machine. Probably "rsync" can just be a symlink to openrsync; I'm not sure. It would be nice if the openrsync man page described how things are expected to work. Something like the following (I don't know if it's correct): By default, openrsync expects the command "rsync" to be available on the remote machine. You can override it to use openrsync with --rsync-path=/usr/bin/openrsync. It is also sufficient to make rsync an alias for openrsync on the remote machine. -- James
Re: openrsync manpage error
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# > On 14-May-2021, at 12:02 PM, Claudio Jeker 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 - 1.24 >> +++ rsync.1 13 May 2021 21:25:57 - >> @@ -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
Re: openrsync manpage error
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# > On 14-May-2021, at 12:02 PM, Claudio Jeker 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 - 1.24 >> +++ rsync.1 13 May 2021 21:25:57 - >> @@ -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
Re: openrsync manpage error
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 - 1.24 > +++ rsync.1 13 May 2021 21:25:57 - > @@ -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
openrsync manpage error
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’ 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 - 1.24 +++ rsync.1 13 May 2021 21:25:57 - @@ -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