Hi,

I'm looking for a way to synchronize files without creating any folder on 
destination.
Just "feed" any existing folder on destination side with files.

Here is an example:
Imagine I have that source :
a/
a/x.txt
b/
b/y.txt
And that I have this destination :
a/
a/z.txt
The wanted result of "rsync source destination" :
a/
a/x.txt
a/z.txt

Of course my real situation involves thousand files/folders structure and I 
would like not to use explicit list of synced folders.
Is there any rsync built-in option/exclude/filter combination that could 
produce this?
If not, is there any clean workaround outside rsync?

For information, this is really easy to get this kind of situations, in my case 
I have:
A server with 2 disks, let's say A & B. And a local drive C.
I usually use rsync to sync (and merge) remote A & B into local C. (A+B >> C)
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)

Side note: this question is also posted there :
http://stackoverflow.com/questions/6857333/rsync-synchronizing-files-only-without-creating-folders-on-destination

Thanks,
Vincent.
-- 
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