<div class="gmail_quote">On Tue, Nov 9, 2010 at 11:04 AM, Steven Xu <span dir="ltr">&lt;<a href="mailto:steven.xu@lba.ca">steven.xu@lba.ca</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Example   &quot;rsync  -av  source/l1/l2/l3/abc.txt dest::Worksheets/l1/l2/l3/&quot;<br></blockquote><div><br></div><div>Do this instead:</div><div><br></div><div>rsync -avR source/./l1/l2/l3/abc.txt dest::Worksheets/</div>
<div><br></div><div>The use -f -R (--relative) along with the /./ path element to signal how much of the source path goes into the copy will make rsync create all the needed dirs on the destination.</div><div><br></div></div>
..wayne..<br>