Rsync Daemon Remote Pull

2020-06-25 Thread Chandrasekar Natarajan via rsync
Hi,

I am trying to pull folders from a windows remote machine using daemon
without SSH.
 Below is the command that used:
rsync -vrtz --delete user@x.x.x.x:port/ModuleName '/cygdrive/d/backup/'

No issue running the same command in Command Prompt.While executing this
command via c#.net Process startup, facing some issue.

The exception is ': Unexpected remote arg: user@x.x.x.x:port/module
rsync error: syntax or usage error (code 1) at main.c(1361) [sender=3.1.2]


Kindly help me to resolve this.

-- 
Thanks,

*Chandrasekar N*
-- 
Please use reply-all for most replies to avoid omitting the mailing list.
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 Daemon Remote Pull

2020-06-26 Thread Chandrasekar Natarajan via rsync
Hi,

Even I tried the same syntax but failed. But push is working fine. rsync: 
Unexpected remote arg:  user@x.x.x.x::module.


> On 26-Jun-2020, at 5:22 AM, Kevin Korb  wrote:
> 
> user@x.x.x.x:port/ModuleName is not correct syntax.  You may have
> something in your shell config translating that for you.  Correct syntax
> is --port  and user@host::module
> 
>> On 6/25/20 6:01 PM, Chandrasekar Natarajan via rsync wrote:
>> Hi,
>> 
>> I am trying to pull folders from a windows remote machine using daemon
>> without SSH.
>>  Below is the command that used:
>> rsync -vrtz --delete user@x.x.x.x:port/ModuleName '/cygdrive/d/backup/'
>> 
>> No issue running the same command in Command Prompt.While executing this
>> command via c#.net Process startup, facing some issue.
>> 
>> The exception is ': Unexpected remote arg: user@x.x.x.x:port/module
>> rsync error: syntax or usage error (code 1) at main.c(1361) [sender=3.1.2]
>> 
>> 
>> Kindly help me to resolve this.
>> 
>> -- 
>> Thanks,
>> 
>> *Chandrasekar N*
>> 
> 
> -- 
> ~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,
>Kevin KorbPhone:(407) 252-6853
>Systems AdministratorInternet:
>FutureQuest, Inc.ke...@futurequest.net  (work)
>Orlando, Floridak...@sanitarium.net (personal)
>Web page:https://sanitarium.net/
>PGP public key available on web site.
> ~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,
> 

-- 
Please use reply-all for most replies to avoid omitting the mailing list.
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 Daemon Remote Pull

2020-06-27 Thread Chandrasekar Natarajan via rsync
Hi Wayne,

Thanks for your reply.

This is the command I am using now(a simple command) *rsync -vrcz --port
 u...@x.x.x.xx::Module1 '/cygdrive/d/test 123/'*
This is the exception 'Unexpected remote arg: User@x.x.x.x::Module1
rsync error: syntax or usage error (code 1) at main.c(1361) [sender=3.1.2]'

Config File:
use chroot = false
strict modes = false
hosts allow = *

port = 4783

[Module1]
path = /cygdrive/D/examples
comments = My Very Own Rsync Server
read only = true
list = true
transfer logging = yes

[Module2]
path = /cygdrive/c/rsync/examples
read only = true
trasnsfer logging = yes

Kindly help me to resolve this.

--
Chandra

On Sat, Jun 27, 2020 at 3:46 AM Wayne Davison  wrote:

> On Thu, Jun 25, 2020 at 3:02 PM Chandrasekar Natarajan wrote:
>
>> Unexpected remote arg: user@x.x.x.x:port/module
>>
>
> This means that your non-option args starts with a local arg, contains a
> remote arg somewhere in the middle, and ends with either a local or remote
> arg.  None of those are valid because all the source args must match in
> being either local or remote.
>
> So, you need to figure out where the local path comes from early in the
> command-line.  For instance, if you copied an "--option" that has some kind
> of unicode char instead of real dashes, it could look like an option but
> actually be parsed as a local arg.  Or you may have some kind of alias or
> script that is adding an arg early in your rsync command-line.  Be sure to
> check for shell aliases, popt aliases (the ~/.popt and /etc/popt files),
> and "rsync" scripts on your path.
>
> ..wayne..
>


-- 
Thanks,

*Chandrasekar N | (M) +91-9894875776*
-- 
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html