On 08/30/2015 08:25 PM, Suvayu Ali wrote:
So it was seeing them as 100% different because... shit. Interesting, I do not understand this behaviour either. Anyone care to elaborate?
Simple ... RTFM ...
From the man page for rsync:
A trailing slash on the source changes this behavior to avoid creating an additional directory level at the destination. You can think of a trailing / on a source as meaning "copy the contents of this directory" as opposed to "copy the directory by name", but in both cases the attributes of the containing directory are transferred to the contain‐ ing directory on the destination. In other words, each of the follow‐ ing commands copies the files in the same way, including their setting of the attributes of /dest/foo:
rsync -av /src/foo /dest rsync -av /src/foo/ /dest/foo ...