<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi,<div><br></div><div>I'm looking for a way to synchronize files without creating any folder on destination.</div><div>Just "feed" any existing folder on destination side with files.</div><div><br></div><div>Here is an example:</div><div><ul class="MailOutline"><li>Imagine I have that source :</li><ul><li>a/</li><li>a/x.txt</li><li>b/</li><li>b/y.txt</li></ul><li>And that I have this destination :</li><ul><li>a/</li><li>a/z.txt</li></ul><li>The wanted result of "rsync source destination" :</li><ul><li>a/</li><li>a/x.txt</li><li>a/z.txt</li></ul></ul><br></div><div>Of course my real situation involves thousand files/folders structure and I would like not to use explicit list of synced folders.</div><div>Is there any rsync built-in option/exclude/filter combination that could produce this?</div><div>If not, is there any clean workaround outside rsync?</div><div><br></div><div>For information, this is really easy to get this kind of situations, in my case I have:</div><div><ul class="MailOutline"><li>A server with 2 disks, let's say A & B. And a local drive C.</li><li>I usually use rsync to sync (and merge) remote A & B into local C. (A+B >> C)</li><li>Then sometimes I just want to sync back some C files (by include/exclude rules) into remote A and/or B. (C >> A) (C >> B)</li></ul><br></div><div>Side note: this question is also posted there :</div><div><a href="http://stackoverflow.com/questions/6857333/rsync-synchronizing-files-only-without-creating-folders-on-destination">http://stackoverflow.com/questions/6857333/rsync-synchronizing-files-only-without-creating-folders-on-destination</a></div><div><br></div><div>Thanks,</div><div>Vincent.</div></body></html>