* Bernhard Voelker
On 08/23/2014 02:05 AM, Philip Amadeo Saeli wrote:
3. Including a trailing slash on the source means that only the contents of the source dir, and not the dir itself, will appear in the destination dir. Note that all files, even files beginning with a dot, will be included in this case (which beats using a "*").
Thanks for the explanation, but ... I feel uncomfortable with the latter as adding a trailing slash on a symlink (whether to a file or a directory) usually causes the symlink to be de-referenced. Now what happens then in rsync? Will the slash implicitly be added to the de-referenced symlink target again, or not? Thus, I'll stick with "path/to/dir/." which works whether "dir" is a symlink to a directory or not.
Interesting point. Haven't thought about that case before. AFAICR, I have been careful to always start with a real directory and not a symlink, though I have not, until now, thought about it explicitly (unless long ago). Since I generally have full admin privs on the system I am running rsync on, I have full choice as to where I root the source of the copy. --Phil -- Philip Amadeo Saeli openSUSE, CentOS, RHEL psaeli@zorodyne.com -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org