On Tue, Jan 30, 2001 at 06:35:56PM -0000, Wrieth, Henry wrote:
> Greetings,
> 
> I primarily use rsync to update remote hosts when source files are edited.
> This means I push to rsync daemons listening on those remote hosts from my
> source host when I need to (on demand).   This is much easier for me than
> running a daemon on the source and executing pulls on all the remote hosts.
> My problem is with the command line syntax of the rsync client.
> 
> for copying from a remote rsync server to the local machine (PULL).
> rsync [OPTION]... [USER@]HOST::SRC [DEST] 
> rsync [OPTION]... rsync://[USER@]HOST[:PORT]/SRC [DEST]
> 
> for copying from the local machine to a remote rsync server (PUSH). 
> rsync [OPTION]... SRC [SRC]... [USER@]HOST::DEST
> 
> There is no url option for pushing to a server.  i.e.:
> rsync [OPTION]...SRC [SRC]... rsync://[USER@]HOST[:PORT]/DEST
> 
> The problem: It seems there is no way to push to a rsync daemon if it is not
> running on the default port.  I can not specify a port in the
> '[USER@]HOST::DEST' syntax.  if you say 'HOST:PORT::DEST'  the single ':'
> gets interpreted as the server module which is not found.  
> 
> Is there anyway to run an rsync daemon on a non standard port and still be
> able to push stuff to it either with the '::' syntax or the url syntax?
> Sorry, If this was covered recently.  I am new to the list.
> 
> Thanks in advance for any help
> --Henry
> 
> Regards,
> 
> Henry Wrieth


Use --port NNNN to select the non-standard port.

The rsync:// syntax doesn't make much sense as a destination because 
in general URLs are for sources, not destinations; that's why it isn't
supported on that end.

- Dave Dykstra

Reply via email to