>
> That is as documented. You are requesting that the directory is synced
> to c, preserving all attributes (due to -a) so rsync does that.
>
Ah... the attributes of the containing directory are transferred to the
containing directory on the destination.
I read that but failed to absorb it. I
On Fri 20 Jan 2017, John Lane wrote:
>
> When you rsync a directory, say `$rsync mydir/ ...` with the trailing
> slash, the destination directory is changed to the ownership,
> permissions and timestamp of `mydir`.
> $ rsync -a a/ b/ c
> $ ls -ld c
> drwxr-xr-x 2 john users 4096 Jun 1
When you rsync a directory, say `$rsync mydir/ ...` with the trailing
slash, the destination directory is changed to the ownership,
permissions and timestamp of `mydir`.
Consider this simple example
$ mkdir test
$ cd test
$ mkdir a b
$ touch -d '01 jan 1980' a/A
$ touch -d '1