<div class="gmail_quote">On Wed, Aug 18, 2010 at 6:18 PM, Vanitha <span dir="ltr">&lt;<a href="mailto:vanitha@stee.stengg.com">vanitha@stee.stengg.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">










<div bgcolor="white" lang="EN-US" link="blue" vlink="purple">

<div>

<p><span class="Apple-style-span" style="font-family: Calibri; font-size: 16px; ">Rsync -r -a -e “ssh -l
user@host1”  -h /home/xx/dir-name user@host2:/home/xx/dir-name</span></p></div></div></blockquote><div><br></div><div>It looks like you&#39;ve duplicated the dir name, so you&#39;re looking for deletions in /home/xx/dir-name and they&#39;re happening in /home/xx/dir-name/dir-name.  Either add a trailing slash to the source arg or remove dir-name from the destination arg.</div>
<div><br></div><div>If your username indeed has an &#39;@&#39; in it, you can just specify it prior to the 2nd @ for the hostname:</div><div><br></div><div>  rsync -ah /src/ user@host1@host2:/dest/</div><div><br></div><div>
However, since your above command results in an extra &quot;-l user&quot; option from rsync, I assume it&#39;s just overriding the -l option you&#39;ve specified and your username doesn&#39;t actually contain the &#39;@&#39;.  Note that the use of ssh is the default these days, so you can probably drop the -e and its arg.</div>
<div><br></div></div>..wayne..<br>