Re: how to copy files
Dejan Jocic <jodejka@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
Reply to: