According to this web page, adding '/' to the end of an rsync destination produces a different result from not adding it.
I've tried to test this, but I cannot verify it:
$ mkdir dir{1..3}
$ touch dir1/file
$ rsync -r dir1/ dir2
$ rsync -r dir1/ dir3/
$ ls dir*
dir1:
file
dir2:
file
dir3:
file
Does appending a '/' to the destination actually have a use sometimes?
A trailing slash on the source changes this behavior to avoid creating an additional directory level at the destination.
? If so please note how your command is not at all similar to the one in the example given in the man page.rsync -r dir1/subdir1 dir2/
it will copy the contents ofsubdir1
intodir2
but if you didrsync -r dir1/subdir1/ dir2/
it will copy the whole directory (including contents)subdir1
intodir2
so you would have./dir2/subdir1/