<div class="gmail_quote">On Wed, Aug 18, 2010 at 6:18 PM, Vanitha <span dir="ltr"><<a href="mailto:vanitha@stee.stengg.com">vanitha@stee.stengg.com</a>></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've duplicated the dir name, so you're looking for deletions in /home/xx/dir-name and they'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 '@' 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 "-l user" option from rsync, I assume it's just overriding the -l option you've specified and your username doesn't actually contain the '@'. 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>