The "ssh" in that command is a second source parameter to be copied (and
then deleted).  using ssh as the transport has been the default for at
least 15 years and the option to tell it to use ssh was either -e ssh or
--rsh=ssh

BTW, -r is included in -a.  Also, -v isn't of much use without -i.

I would suggest that if you are going to use cygwin's rsync you should
do so from within cygwin's shell.  OTOH, I would also suggest that if
you are on windows you should use something native to windows like unison.

On 11/20/2017 03:28 PM, Amit via rsync wrote:
> Thanks for your inputs. Surprisingly i tried executing the following command
> but end up deleting ssh.exe in Cygwin folder when source folder path is
> incorrect or not reachable.
> 
> rsync --remove-source-files -v -av -r /cygdrive/c/AmitTest/ ssh
> username@destinationserver:/cygdrive/e/AMIT/AmitTest/
> 
> I am wondering if remove source is doing some tricks there but unable to
> find root cause why ssh.exe will get deleted with this command. It has
> happened twice since yesteday and today i noticed this happened when i
> executed this command. Any idea why this can be happening?
> 
> Unfortunately i don't have way to copy ssh to Cygwin\bin folder as i keep
> getting 'Access Denied' error from windows explorer and cmd (tried taking
> ownership of Cygwin folder as well).
> 
> 
> Thanks,
> Amit
> 
> 
> 
> --
> Sent from: http://samba.2283325.n4.nabble.com/Samba-rsync-f2500462.html
> 

-- 
~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,
        Kevin Korb                      Phone:    (407) 252-6853
        Systems Administrator           Internet:
        FutureQuest, Inc.               ke...@futurequest.net  (work)
        Orlando, Florida                k...@sanitarium.net (personal)
        Web page:                       http://www.sanitarium.net/
        PGP public key available on web site.
~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,

Attachment: signature.asc
Description: OpenPGP digital signature

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

Reply via email to