rsync: traling slash or without it

If you omit traling slash, rsync will create last folder of path before actual content copying. But if you append traling slash to source, rsync will skip that folder and copy subfolders and files of that folder directly to target.

rsync /home/vitalijus /server/backup
rsync /home/vitalijus/ /server/backup

Leave a Reply

Your email address will not be published. Required fields are marked *