Discussion:
openrsync manpage error
Irshad Sulaiman
2021-05-13 21:44:45 UTC
Permalink
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 -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
Claudio Jeker
2021-05-14 09:02:23 UTC
Permalink
Post by Irshad Sulaiman
Hi
I have modified error in openrsync(1) manpage in Example section isn’t
that ‘openrsync -t' instead of 'rsync -t ‘
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?
Post by Irshad Sulaiman
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
.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
.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
.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
Irshad Sulaiman
2021-05-14 09:31:32 UTC
Permalink
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 ***@192.168.1.1:bar
***@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#
Post by Claudio Jeker
Post by Irshad Sulaiman
Hi
I have modified error in openrsync(1) manpage in Example section isn’t
that ‘openrsync -t' instead of 'rsync -t ‘
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?
Post by Irshad Sulaiman
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
.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
.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
.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
Claudio Jeker
2021-05-17 07:54:23 UTC
Permalink
Post by Irshad Sulaiman
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
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.
Post by Irshad Sulaiman
Post by Claudio Jeker
Post by Irshad Sulaiman
Hi
I have modified error in openrsync(1) manpage in Example section isn’t
that ‘openrsync -t' instead of 'rsync -t ‘
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?
Post by Irshad Sulaiman
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
.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
.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
.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
Irshad
2021-05-14 23:18:14 UTC
Permalink
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 ***@192.168.1.1:bar
***@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#
Post by Claudio Jeker
Post by Irshad Sulaiman
Hi
I have modified error in openrsync(1) manpage in Example section isn’t
that ‘openrsync -t' instead of 'rsync -t ‘
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?
Post by Irshad Sulaiman
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
.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
.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
.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
James Cook
2021-05-16 13:30:00 UTC
Permalink
Post by Claudio Jeker
Post by Irshad Sulaiman
Hi
I have modified error in openrsync(1) manpage in Example section isn’t
that ‘openrsync -t' instead of 'rsync -t ‘
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
Jan Stary
2021-05-16 15:24:10 UTC
Permalink
Post by James Cook
Post by Claudio Jeker
Post by Irshad Sulaiman
Hi
I have modified error in openrsync(1) manpage in Example section isn’t
that ‘openrsync -t' instead of 'rsync -t ‘
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
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.
Loading...