rsync error: syntax or usage error (code 1) at /home/lapo/packaging/tmp/rsync-2., 6.3/main.c(1073)

Wayne Davison wayned at samba.org
Wed Feb 2 02:20:21 GMT 2005


On Tue, Feb 01, 2005 at 01:47:19PM -0800, Jeff Yana wrote:
> In this case, I was just inputting "rsync" with no flags or args.

In that case, in addition to the above error, rsync should have also
output a big, long usage message (on stderr).  You can get the usage
message on stdout via "rsync --help".  It would be very strange if
the usage message were not printed.

> bash-2.05b$ rsync -avc --progress --stats rsh="ssh -l adminuser" 
> rsync-path=/usr/local/bin/rsync /cygdrive/g/source/ 
> adminuser at hostA:/My/Shared/Volume/

You missed the "--" in front of the --rsh and --rsync-path options, so
rsync complained that it each one wasn't found as a file.  Also, you
must not both specify "-l adminuser" to ssh and "adminuser@" -- choose
one or the other (since they both do the same thing).  I'd recommend
setting "RSYNC_RSH=ssh" in your environment so that you don't need to
specify "--rsh=ssh" (which just makes the commands easier to type) and
then using the "adminuser@" prefix to control the user.

..wayne..


More information about the rsync mailing list