Hello, sometimes we need to copy files and we are not sure when to use “/ ” at the end of the path. Copying files rsync while brewing coffee at home this is what I found. Check this useful summary:
If “/” is placed at the end of the source folder, rsync will copy one the content of the folder.
When not using “/” at the end of source folder, rsync will copy the folder itself and the content of the folder.
If “/” is placed at the end of the destination folder, copying files rsync will paste the data directly inside the folder.
When not using “/” at the end of destination folder, rsync will create a folder with that name and paste the data inside that folder.