<div dir="ltr"><div><div>Thanks Joe for the reply:<br>1) why do you say to use fuzzy twice? Do you mean in both directions?<br></div>2) I have to mention that the remote system is a Synology NAS, which for whatever reason (I can't think about), doesn't support symlinks, even in the same disk volume or "share"!<br></div><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote">But I could make some symlinks in the local system (archlinux) and user exclude filters to remove the directories I don't want to synchronize. <br></blockquote><div><div class="gmail_extra"><br></div><div class="gmail_extra">But still there is no way of doing this with rsync options alone?<br clear="all"></div><div class="gmail_extra"><div><div class="gmail_signature"><div dir="ltr"><div><span style="color:rgb(102,102,102)"><i>_______________<br><br>Gionata Boccalini</i></span><br></div></div></div></div>
<br><div class="gmail_quote">2015-06-07 19:28 GMT+02:00 Joe <span dir="ltr"><<a href="mailto:josephj@main.nc.us" target="_blank">josephj@main.nc.us</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I'm sure one of the experts will have a better answer, but two things come to mind as options to explore:<br>
1) Use --fuzzy twice so files which are the same but possibly with different names and locations are synced<br>
2) Use some sort of symlinks on the destination so the names actually match (these could be added and removed right before and after the rsync respectively if you don't want them around later.) Symlinks are tricky with rsync. You have to set the options right, so I'm not sure of the exact details.<div><div class="h5"><br>
<br>
On 06/07/2015 12:38 PM, Gionata Boccalini wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">
Hello everyone,<br>
<br>
I'm new to this mailing list but I have been using rsync for some years up to now.<br>
I'm trying to synchronize two directory trees, but I want a special behavior that I didn't find on the net nor in the manual (or maybe there is a combination of options to get what I want but I couldn't find it).<br>
<br>
Tree A is like:<br>
<br>
A<br>
  *<br>
  *<br>
   FolderA<br>
  *<br>
  *<br>
<br>
And tree B (on a remote filesystem) is like:<br>
<br>
B<br>
  *<br>
  *<br>
  *<br>
   FolderB<br>
  *<br>
  *<br>
<br>
<br>
I have to synchronize everything in one rsync run, like<br>
rysnc  -arv  A/  B/<br>
<br>
but I want FolderA to be synchronized with FolderB.<br>
They must contain the same files but have a different name! I want something like a "directory name translation" in the rsync run...<br>
Is it possible? Do you see any another way of doing this? (A part of using two rsync runs....)<br>
Please let me know if I didn't explain the problem correctly or you need further information.<br>
Thank you for your attention and time.<br>
Best regards.<br></div></div>
/_______________<br>
<br>
Gionata Boccalini/<br>
<br>
<br>
</blockquote>
<br>
</blockquote></div><br></div></div></div>