On 20-05-17, Felix Dietrich wrote: > Dejan Jocic <jode...@gmail.com> writes: > > > rsync -av /path/to/original/folder /path/to/backup > > > > Notice that there is no need for those / on the end of paths. > > Rsync actually treats a trailing newline on the source path specially; > quoted from the man page: > > 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 con‐ > tents of this directory" as opposed to "copy the directory by > name" […] > > -- > Felix Dietrich >
Yup, I know it. But OP asked for copy of original folder to backup folder. Not for copy of contents of original folder to some backup folder, in which case you would use trailing slash. Or at least that is how I've understood his question.