In rsync, the man page reads as follows:
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
The trailing slash on the destination doesn't matter at all. Only on the source. (And then, of course, it only matters if the source is a directory rather than a single file or a glob.)
To illustrate the directory to directory use case:
$ mkdir foo bar baz
$ chmod 700 foo
$ chmod 750 bar
$ chmod 705 baz
$ echo hello > foo/file1
$ chmod 606 foo/file1
$ ls -n
total 0
drwxr-x--- 2 501 20 68 Aug 8 15:29 bar/
drwx---r-x 2 501 20 68 Aug 8 15:29 baz/
drwx------ 3 501 20 102 Aug 8 15:30 foo/
$ ls -n foo
total 8
-rw----rw- 1 501 20 6 Aug 8 15:30 file1
$ rsync -a foo bar
$ rsync -a foo baz/
$ rsync -a foo bif
$ rsync -a foo bonk/
$ ls -n
total 0
drwxr-x--- 3 501 20 102 Aug 8 15:30 bar/
drwx---r-x 3 501 20 102 Aug 8 15:30 baz/
drwxr-xr-x 3 501 20 102 Aug 8 15:30 bif/
drwxr-xr-x 3 501 20 102 Aug 8 15:30 bonk/
drwx------ 3 501 20 102 Aug 8 15:30 foo/
$ ls -n *
bar:
total 0
drwx------ 3 501 20 102 Aug 8 15:30 foo/
baz:
total 0
drwx------ 3 501 20 102 Aug 8 15:30 foo/
bif:
total 0
drwx------ 3 501 20 102 Aug 8 15:30 foo/
bonk:
total 0
drwx------ 3 501 20 102 Aug 8 15:30 foo/
foo:
total 8
-rw----rw- 1 501 20 6 Aug 8 15:30 file1
$ rm -rf b*
$ mkdir bar baz
$ chmod 750 bar
$ chmod 705 baz
$ rsync -a foo/ bar
$ rsync -a foo/ baz/
$ rsync -a foo/ bif
$ rsync -a foo/ bonk/
$ ls -n
total 0
drwx------ 3 501 20 102 Aug 8 15:30 bar/
drwx------ 3 501 20 102 Aug 8 15:30 baz/
drwx------ 3 501 20 102 Aug 8 15:30 bif/
drwx------ 3 501 20 102 Aug 8 15:30 bonk/
drwx------ 3 501 20 102 Aug 8 15:30 foo/
$ ls -n *
bar:
total 8
-rw----rw- 1 501 20 6 Aug 8 15:30 file1
baz:
total 8
-rw----rw- 1 501 20 6 Aug 8 15:30 file1
bif:
total 8
-rw----rw- 1 501 20 6 Aug 8 15:30 file1
bonk:
total 8
-rw----rw- 1 501 20 6 Aug 8 15:30 file1
foo:
total 8
-rw----rw- 1 501 20 6 Aug 8 15:30 file1
$
rsync
that I want to post here for illustration of the different cases, but I can't until the question is reopened.