On 2021-09-12, l0f...@tuta.io <l0f...@tuta.io> wrote: >> # The trailing / matters. Does it matter on the source as well? >> # I generally include it. >> rsync -a mysite/doc_root/ mysite_test/doc_root/ # The trailing / >> matters. >> > Actually, I'm not sure to understand Greg's remark here. > > In my opinion, trailing slash doesn't matter for destination folder on > the contrary of *source* folder. >
It makes a difference when the source is a file and the destination directory is inexistant, because in that case a copy of $file named $destination will be created, which is not what you want here.