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

2005-02-01 Thread Jeff Yana
Good Morning-
I am running rsync over Cygwin and am getting an unusual error. The same 
error occurs when I attempt to invoke rsync on the Windows command-line 
(using cwrsync). Has anyone ever seen it before. Googling it turns up 
nothing useful.

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

Win2K Server, Service Pack 4
Thanks in advance for your help.
Jeff
--
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html


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

2005-02-01 Thread Wayne Davison
On Tue, Feb 01, 2005 at 10:28:47AM -0800, Jeff Yana wrote:
 rsync error: syntax or usage error (code 1) at 
 /home/lapo/packaging/tmp/rsync-2.6.3/main.c(1073)

You'll have to tell us the command you're trying to run or we won't be
able to figure out what you're doing wrong.

..wayne..
-- 
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html


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

2005-02-01 Thread Jeff Yana
Wayne Davison wrote:
On Tue, Feb 01, 2005 at 10:28:47AM -0800, Jeff Yana wrote:
 

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

You'll have to tell us the command you're trying to run or we won't be
able to figure out what you're doing wrong.
..wayne..
 

Sorry, I thought that was clear.
In this case, I was just inputting rsync with no flags or args.
With args, it is producing this result:
bash-2.05b$ rsync -avc --progress --stats rsh=ssh -l adminuser 
rsync-path=/usr/local/bin/rsync /cygdrive/g/source/ 
[EMAIL PROTECTED]:/My/Shared/Volume/
[EMAIL PROTECTED] password:
building file list ...
rsync: link_stat /usr/bin/rsh=ssh -l adminuser failed: No such file or 
directory (2)
rsync: link_stat /usr/bin/rsync-path=/usr/local/bin/rsync failed: No 
such file or directory (2)
0 files...

And it continues to build file list before I escape using Ctrl-C
Source machine is a Win2K Server and target is Panther client.
Thanks.
Jeff
It was also appearing along with another error when attempting to sync a 
loadset between a Win2K Server machine and Linux, but the cause of the 
other error has been identified and resolved
--
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html


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

2005-02-01 Thread Wayne Davison
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/ 
 [EMAIL PROTECTED]:/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..
-- 
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html


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

2005-02-01 Thread Jeff Yana
Wayne Davison wrote:
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.
   

 

You are right, I just did not include it as I thought it would be 
implicit to all. Sorry about the confusion.

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/ 
[EMAIL PROTECTED]:/My/Shared/Volume/
   

 

Yes, of course. Next time I should RTFM, ay!
Great advice about setting the environment variable. Do I set this in 
the environment variable tab on the Windows machine under System 
Properties as you would under Cygwin?

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..
 

--
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html